- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for matchAndRewrite (0.51 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
const CalibrationOptions &calib_opts) : RewritePattern(MatchAnyOpTypeTag(), /*benefit=*/1, context), calib_opts_(calib_opts) {} LogicalResult matchAndRewrite(Operation *op, PatternRewriter &rewriter) const override { // Return early if the given operator is the custom aggregator op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
const QuantizationOptions& quant_options) : OpRewritePattern<TF::PartitionedCallOp>(context), quant_options_(quant_options) {} private: LogicalResult matchAndRewrite(TF::PartitionedCallOp call_op, PatternRewriter& rewriter) const override { StringRef function_name = mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
virtual bool IsDeviceCompatible(SrcOpT contraction_op, BiasAddOp bias_add, PatternRewriter &rewriter) const { return true; } LogicalResult matchAndRewrite(SrcOpT contraction, PatternRewriter &rewriter) const override { auto context = rewriter.getContext(); // We do support fusion only if the contraction operation is inside one of
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
public: explicit MergeConsecutiveQuantizeCast(MLIRContext* context) : OpRewritePattern<quantfork::QuantizeCastOp>(context) {} private: LogicalResult matchAndRewrite(quantfork::QuantizeCastOp q_op, PatternRewriter& rewriter) const override { auto preceding_qcast = q_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
: OpRewritePattern<arith::ConstantOp>(context), visited_nonquantizable_ops_(visited_nonquantizable_ops), quant_specs_(quant_specs) {} LogicalResult matchAndRewrite(arith::ConstantOp op, PatternRewriter& rewriter) const override { QuantizationUnits quantizable_ops; // 1. Collect quantizable ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
return *initializers.begin(); } class OptimizeSessionInitializerPattern : public OpRewritePattern<SessionInitializerOp> { public: using OpRewritePattern::OpRewritePattern; LogicalResult matchAndRewrite(SessionInitializerOp op, PatternRewriter &rewriter) const override { SymbolTable symbol_table(op->getParentOfType<ModuleOp>()); SmallVector<func::FuncOp, 2> to_remove;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
// results of the LaunchOp to the operands of the ReturnOp. struct DropEmptyLaunch : public OpRewritePattern<LaunchOp> { using OpRewritePattern<LaunchOp>::OpRewritePattern; LogicalResult matchAndRewrite(LaunchOp op, PatternRewriter& rewriter) const override { Block& block = op.GetBody(); // Check if launch only has a return.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
auto func = getOperation(); patterns.add<ConvertTFEinsumOp>(&getContext()); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } } // namespace LogicalResult ConvertTFEinsumOp::matchAndRewrite( TF::EinsumOp op, PatternRewriter& rewriter) const { if (op->getNumOperands() == 1) { return matchAndRewriteUnaryEinsumOp(op, rewriter); } RankedTensorType lhs =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
aqtype.getStorageTypeMax() - offset); } return new_qtype.castFromExpressedType( QType::castToExpressedType(signed_tensor_type)); } LogicalResult RemoveDebugAttrPattern::matchAndRewrite( Operation* op, PatternRewriter& rewriter) const { // removeAttr will return nullptr if the attribute did not exist. Thus we can // return success(result) to indicate if this op has changed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0)