Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ConstantFoldMul (0.1 sec)

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

    using FoldBroadcastInDimBeforeMulOp =
        FoldBroadcastInDimBeforeBinaryElementwiseOp<mhlo::MulOp>;
    
    // Constant folds mhlo.mul, this folder doesn't have an upper limit on how many
    // elements can be folded.
    LogicalResult ConstantFoldMul(mhlo::MulOp op, PatternRewriter &rewriter) {
      ShapedType type = mlir::dyn_cast<ShapedType>(op.getType());
      Type etype = type.getElementType();
      Attribute result = {};
      if (mlir::isa<FloatType>(etype)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top