- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 52 for replaceMap (0.14 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_identity_op_pattern.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 15 06:13:49 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
DenseFPElementsAttr::get( mlir::dyn_cast<ShapedType>(const_op.getValue().getType()) .clone(rewriter.getBF16Type()), bfloat16_values)); } rewriter.replaceOp(op, rewriter.create(state)->getResults()); return success(); } }; class BitcastConvertOpPattern : public OpConversionPattern<mlir::stablehlo::BitcastConvertOp> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc
createScfThenOrElse(else_region, scf_if_op.getElseRegion(), tf_if_region_return_type, rewriter); // Replace the `tf.IfRegion` op with the results of the `scf.if` op. rewriter.replaceOp(op, scf_if_op.getResults()); return success(); } }; /// Convert the `tf.WhileRegion` op to the `scf.while` op. class ConvertWhileRegionOp : public OpRewritePattern<WhileRegionOp> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_canonicalization_helper.h
template <typename OpTy, typename... Args> OpTy ReplaceTfOpWithNewOp(RewriterBase &b, Operation *op, Args &&...args) { auto ret = CreateTfOp<OpTy>(b, op, std::forward<Args>(args)...); b.replaceOp(op, ret.getOperation()->getResults()); return ret; } } // namespace TF } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 12 21:57:12 UTC 2021 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc
attrs.push_back(call_target); auto custom_call = rewriter.create<mlir::stablehlo::CustomCallOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), attrs); rewriter.replaceOp(op, custom_call.getResults()); return success(); } } // namespace template <typename OpTy> class SmuggleOpPattern : public OpRewritePattern<OpTy> { public:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 01:14:04 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
Value add = rewriter.create<AddOp>(loc, op.getValue(), bias_broadcast); if (add.getType() != op.getType()) { add = rewriter.create<tensor::CastOp>(loc, op.getType(), add); } rewriter.replaceOp(op, {add}); return success(); } }; // Conterts tf.Conv2D to mhlo.dynamic_conv. // TODO(disc): To recover static special case's performance with adding folding,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_combine.cc
if (move_input_op_0 != move_input_op_1) return mlir::failure(); // Use the rewriter to replace the ConvertTftToDhtOp's users with the // operands of MoveDhtToTftOp. rewriter.replaceOp( op, {move_input_op_0.getOperand(0), move_input_op_0.getOperand(1)}); return mlir::success(); } }; // Register rewrite pattern as "canonicalization" patterns on the MoveDhtToTftOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 09 12:09:19 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
/*weights_format=*/rewriter.getStringAttr("DEFAULT"), /*keep_num_dims=*/rewriter.getBoolAttr(true), /*asymmetric_quantize_inputs=*/mlir::BoolAttr()); rewriter.replaceOp(bmm_op, {fc_op.getResult(0)}); return success(); }; }; // Converts batch_matmul operation with a ones tensor to a reduce_sum. struct ConvertBatchMatMulOpToReduceSum
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
op.getNumOperands() == 1 && op.getNumResults() == 1 && op.getOperands().front().getType() == op.getResults().front().getType()) { rewriter.replaceOp(op, op.getOperands()); return success(); } return failure(); } }; namespace { bool IsShloMainFuncOp(func::FuncOp func_op) { if (func_op == nullptr) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
} else { return rewriter.notifyMatchFailure(bcast_op, "Unsupported element type."); } Value new_const_op = rewriter.create<mhlo::ConstantOp>(bcast_op.getLoc(), result); rewriter.replaceOp(bcast_op, {new_const_op}); return success(); } }; using FoldBroadcastInDimBeforeMulOp = FoldBroadcastInDimBeforeBinaryElementwiseOp<mhlo::MulOp>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0)