- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 121 for pattern_rewriter (0.21 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op_test.cc
namespace { using QuantizationComponentSpec = tensorflow::quantization::QuantizationComponentSpec; class EmptyPatternRewriter : public mlir::PatternRewriter { public: explicit EmptyPatternRewriter(const OpBuilder& other_builder) : mlir::PatternRewriter(other_builder) {} ~EmptyPatternRewriter() override = default; }; TEST(TfQuantOpTest, applyUniformQuantization) { MLIRContext context;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc
SourceMgrDiagnosticHandler sourceMgrHandler(source_manager_, &context_); OpBuilder op_builder(&op); EmptyPatternRewriter pattern_rewriter(op_builder); LogicalResult result = Tf2XlaRewriter::RewriteOp(&op, pattern_rewriter, /*device_type=*/"XLA_CPU_JIT"); if (!result.succeeded()) { return tsl::errors::Internal("Failed to rewrite op"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.h
PatternRewriter& rewriter) const override; }; struct SquaredDifference : public OpRewritePattern<TFL::SquaredDifferenceOp> { using OpRewritePattern<TFL::SquaredDifferenceOp>::OpRewritePattern; LogicalResult matchAndRewrite(TFL::SquaredDifferenceOp squared_diff_op, PatternRewriter& rewriter) const override; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 03 16:37:16 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.h
LogicalResult FillAttributesForUniformQuantizedDotOp( PatternRewriter& rewriter, Operation* op, llvm::StringMap<Attribute>& identifier_to_attr, tensorflow::quantization::QuantizationMethod::PresetMethod quantization_method, bool enable_per_channel_quantization); LogicalResult FillAttributesForUniformQuantizedConvolutionOp( PatternRewriter& rewriter, Operation* op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc
LogicalResult matchAndRewrite(Operation* op, PatternRewriter& rewriter) const override; private: template <typename Op> LogicalResult RewriteEqOp(Operation* op, PatternRewriter& rewriter) const; LogicalResult RewriteOp( Operation* op, PatternRewriter& rewriter, const std::function<bool(ArrayRef<int64_t>, ArrayRef<int64_t>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
// logics. std::optional<TF::PartitionedCallOp> RegisterOperationsInFuncOp( StringRef func_name, PatternRewriter& rewriter, QuantizedType quant_type, Value input_val, ShapedType result_type, std::function<Operation*(PatternRewriter&, Operation*, Value, ShapedType, QuantizedType)> quantization_operations_func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
return rewriter.getI64ArrayAttr({stride_h, stride_w}); } Attribute GetLhsDilationValue(PatternRewriter& rewriter, llvm::StringMap<Attribute>& identifier_to_attr) { return rewriter.getI64ArrayAttr({1, 1}); } Attribute GetRhsDilationValue(PatternRewriter& rewriter, llvm::StringMap<Attribute>& identifier_to_attr) { ArrayAttr dilations =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/canonicalize.cc
return failure(); } private: LogicalResult InlineRegion(Location loc, PatternRewriter &rewriter, Operation *inline_point, Region *region) const; }; LogicalResult SimplifySCFIfOp::InlineRegion(Location loc, PatternRewriter &rewriter, Operation *inline_point,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 14 22:15:06 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc
PatternRewriter& rewriter); static std::vector<Value> sliceInput(Value value, int batch_size, Location loc, PatternRewriter& rewriter); LogicalResult matchAndRewrite(BatchMatMulOpType op, PatternRewriter& rewriter) const override; }; #define GEN_PASS_DEF_UNROLLBATCHMATMULPASS
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
// a static broadcast. Value broadcastToFeatureDim(Location loc, RankedTensorType result_type, Value value1d, Value shape_value, int64_t feature_dim, PatternRewriter &rewriter) { auto dims_type = RankedTensorType::get(/*shape=*/{1}, rewriter.getIntegerType(64)); auto dims = DenseIntElementsAttr::get(dims_type, {feature_dim}); if (shape_value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0)