- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for populateWithGenerated (0.27 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/remove_sharding_custom_call.cc
void runOnOperation() override; }; void RemoveShardingCustomCallPass::runOnOperation() { func::FuncOp func_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); populateWithGenerated(patterns); FrozenRewritePatternSet frozen_patterns(std::move(patterns)); if (failed(applyPatternsAndFoldGreedily(func_op, frozen_patterns))) { func_op.emitWarning() << "Failed to converge "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 07:04:47 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.cc
}; #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.inc" void OptimizeIntGraph::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation(); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 24 02:26:47 UTC 2024 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc
}; #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.inc" void OptimizeGraphPass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation(); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Dec 21 20:11:52 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
MLIRContext* ctx = &getContext(); RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); simple_patterns::populateWithGenerated(patterns); fusion_patterns::populateWithGenerated(patterns); FrozenRewritePatternSet frozen_patterns(std::move(patterns)); // Iterate over the sorted list of functions to keep order deterministic.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf_mlir_reduce_main.cc
explicit TFReductionPatternInterface(mlir::Dialect *dialect) : DialectReductionPatternInterface(dialect) {} void populateReductionPatterns( mlir::RewritePatternSet &patterns) const final { populateWithGenerated(patterns); } }; } // namespace int main(int argc, char *argv[]) { tensorflow::InitMlir y(&argc, &argv); mlir::DialectRegistry registry; mlir::RegisterCommonToolingDialects(registry);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 21 20:13:57 UTC 2023 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_variables.cc
module->getAttr(kLegalizeTflVariables)) { if (!mlir::cast<BoolAttr>(legalize_tfl_variables_attr).getValue()) return; } RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); (void)applyPatternsAndFoldGreedily(module, std::move(patterns)); } }; } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeVariablesPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc
}; #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/stablehlo/odml_converter/transforms/shlo_simplify.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SHLOSimplifyPass) void runOnOperation() override { ModuleOp module = getOperation(); RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); PopulateFolderPatterns(patterns); if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) { signalPassFailure(); } } }; } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 03:05:20 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.cc
} // namespace void PopulateTFDataOptimizationPatterns(MLIRContext *context, RewritePatternSet *patterns) { patterns->add<FuseParallelMapAndBatch>(context); populateWithGenerated(*patterns); } } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.cc
void runOnOperation() override; }; #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.inc" void OptimizePass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation(); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 2.6K bytes - Viewed (0)