- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 150 for RewritePatternSet (0.2 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/post_quantize.cc
return success(); } }; #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/post_quantize.inc" void PostQuantizePass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); auto* ctx = func.getContext(); patterns.add<FoldTrivalRequantizeOp<quantfork::QuantizeCastOp>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
using mlir::MLIRContext; using mlir::ModuleOp; using mlir::Operation; using mlir::OperationName; using mlir::OperationPass; using mlir::Pattern; using mlir::PatternApplicator; using mlir::RewritePatternSet; using mlir::StringAttr; using mlir::TensorType; using mlir::Type; using mlir::Value; using mlir::WalkResult; auto* auto_outside_compilation_gauge = tensorflow::monitoring::Gauge<bool, 0>::New(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc
} if (etype.isa<IntegerType>()) { return FoldDivOpInternal<APInt>(op, rewriter); } return failure(); } } // namespace void PopulateFolderPatterns(RewritePatternSet& patternSet) { patternSet.add(FoldDivOp); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 06:11:55 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc
// TODO(renjieliu): Implement a better version for different hardware cases. return buffer_size * kCrossHardwareTransferPerByteCost / 8.0 + kCrossHardwareTransferFixedCost; } mlir::RewritePatternSet GetTransformations( MLIRContext* context) const override { return {context}; } mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<CpuHardware>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc
expressedType, fqOp.getIsSigned()); } }; void ConvertSimulatedQuantPass::runOnOperation() { bool hadFailure = false; auto func = getOperation(); RewritePatternSet patterns(func.getContext()); auto *ctx = func.getContext(); patterns.add<ConstFakeQuantRewrite, ConstFakeQuantPerAxisRewrite>( ctx, &hadFailure); (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc
"Skip tf.StatefulPartitionedCall and tf.PartitionedCall")}; }; void TFToMhloPass::runOnOperation() { auto func = getOperation(); MLIRContext *context = func->getContext(); RewritePatternSet patterns(context); mhlo::PopulateLegalizeTfPatterns(context, &patterns); TF::PopulateTFLoweringBeforeHLOPatterns(context, &patterns); mhlo::Tf2XlaTypeConverter converter;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/canonicalize.cc
rewriter.eraseOp(inline_point); return success(); } } // namespace void populateCanonicalizationPatterns(func::FuncOp func, RewritePatternSet &patterns) { MLIRContext *context = func.getContext(); mlir::Dialect *tf = context->getLoadedDialect<mlir::TF::TensorFlowDialect>(); // Load all official canonicalization patterns. Here we skip the
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/lite/transforms/optimize_op_order.cc
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OptimizeOpOrderPass) void runOnOperation() override; }; void OptimizeOpOrderPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); auto* ctx = func.getContext(); patterns.add<PushDownDequantize>(ctx); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc
replaceResults.push_back(result); } rewriter.replaceOp(op, replaceResults); return success(); } }; void DecomposeHybridQuantizationPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto *ctx = &getContext(); auto func = getOperation(); patterns.add<DequantizeConverter<TFL::Conv2DOp>, DequantizeConverter<TFL::Conv3DOp>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
rewriter.eraseOp(op); return success(); } private: StringRef saved_model_dir_; }; void InitTextFileToImportPass::runOnOperation() { RewritePatternSet patterns(&getContext()); MLIRContext* context = &getContext(); func::FuncOp func = getOperation(); patterns.add<ConvertInitializeTableFromTextFileV2>( context, StringRef(saved_model_dir_));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0)