Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SplatValueType (0.12 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    // to the splate constant value.
    // `SplatValueType` can be `APInt` or `APFloat`.
    template <typename SplatValueType>
    LogicalResult GetConstantSplatValue(Value value, SplatValueType& splat_value) {
      DenseElementsAttr attr;
      if (!matchPattern(value, m_Constant(&attr)) || !attr.isSplat()) {
        return failure();
      }
    
      splat_value = attr.getSplatValue<SplatValueType>();
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top