- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 150 for RewritePatternSet (0.43 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc
void runOnOperation() override; }; #include "tensorflow/compiler/mlir/lite/stablehlo/transforms/generated_composite_lowering.inc" void CompositeLoweringPass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); ConversionTarget target(getContext()); target.addLegalDialect<TFL::TensorFlowLiteDialect>(); target.addLegalDialect<arith::ArithDialect>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_nnapi.cc
} void runOnOperation() override; }; void DeviceTransformNNAPIPass::runOnOperation() { auto func = getOperation(); auto* ctx = &getContext(); NNAPIHardware nnapi_hardware; RewritePatternSet patterns = nnapi_hardware.GetTransformations(ctx); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } } // namespace static PassRegistration<DeviceTransformNNAPIPass> pass;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 18:43:51 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc
} void getDependentDialects(DialectRegistry& registry) const final { registry.insert<mlir::stablehlo::StablehloDialect>(); } void runOnOperation() override { RewritePatternSet patterns(&getContext()); patterns.add<SmuggleOpPattern<TF::ResizeBilinearOp>>(&getContext()); patterns.add<SmuggleOpPattern<TF::ResizeNearestNeighborOp>>(&getContext()); ConversionTarget target(getContext());
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/tensorflow/transforms/unroll_batch_matmul.cc
// the end. struct UnrollBatchMatMulPass : public impl::UnrollBatchMatMulPassBase<UnrollBatchMatMulPass> { void runOnOperation() override; }; void UnrollBatchMatMulPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); PopulateUnrollTfBatchMatMul(&getContext(), patterns); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } } // namespace
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/quantization/stablehlo/passes/quantize.cc
} private: void runOnOperation() override; }; void QuantizePass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); patterns.add<StableHloQuantization, StableHloQuantizationReverse>(&ctx); PopulateCommonQuantizationPatterns(ctx, patterns, enable_per_channel_quantized_weight_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 07:08:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_combine.cc
}; // Register rewrite pattern as "canonicalization" patterns on the MoveDhtToTftOp // so that they can be picked up by the Canonicalization framework. void mlir::tfd::ConvertTftToDhtOp::getCanonicalizationPatterns( RewritePatternSet& results, MLIRContext* context) { results.add<SimplifyDoubleConversion>(context);
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/quantization/tensorflow/cc/constant_fold_test.cc
OwningOpRef<ModuleOp> module_op_ref = ParseModuleOpString(kModuleCode); const auto test_func = module_op_ref->lookupSymbol<func::FuncOp>("test_fold_constant"); ASSERT_THAT(test_func, NotNull()); RewritePatternSet patterns(ctx_.get()); patterns.add<ConstantFoldQuantizableOperands>(ctx_.get()); EXPECT_TRUE( succeeded(applyPatternsAndFoldGreedily(test_func, std::move(patterns)))); auto depthwise_conv_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize.cc
private: quant::QuantizationSpecs quant_specs; }; #include "tensorflow/compiler/mlir/lite/transforms/generated_quantize.inc" void QuantizePass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); auto* ctx = func.getContext(); quant_specs.verify_numeric = enable_numeric_verify_; quant_specs.whole_model_verify = enable_whole_model_verify_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
void PopulateCommonQuantizationPatterns( MLIRContext& ctx, RewritePatternSet& patterns, bool enable_per_channel_quantized_weight); // Populates conversion patterns for all quantizable ops, including // ops that are not compute-heavy and data movement ops. void PopulateAllQuantizablePatterns(MLIRContext& ctx, RewritePatternSet& patterns); } // namespace mlir::quant::stablehlo
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
call_op, float_func.getResultTypes(), args, f_attr); return success(); } }; void ConvertTpuModelToCpuPass::runOnOperation() { MLIRContext* ctx = &getContext(); RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); patterns.add<ReplaceTpuPartitionedCallOpWithPartitionedCallOp, ReplaceBatchFunctionOpToPartitionedCallOp>(ctx);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0)