- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for createLegalizeTFPass (0.26 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/passes.h
/// Note: This is a module pass because when legalizing with TF2XLA fallback, /// functions are imported into the module. Importing functions into a /// module is not thread safe. std::unique_ptr<OperationPass<ModuleOp>> createLegalizeTFPass( bool legalize_chlo = true, std::optional<StringRef> tf2xla_fallback_device_type = std::nullopt, bool prefer_tf2xla = false); /// Adds the TF to TF lowerings and TF to XLA rewrite patterns to the pattern
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc
passes(&pm); return pm.run(module.get()).succeeded(); } std::function<void(PassManager*)> legalizeTFPasses() { return [](PassManager* pm) { pm->addPass(mlir::mhlo::createLegalizeTFPass( /* legalize_chlo=*/true, llvm::StringRef("gpu/xpu"), /* prefer_tf2xla=*/false)); }; } TEST(XlaLegalizeTest, IllegalOp) { constexpr char kMlirIllegalOpStr[] = R"(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
prefer_tf2xla_))) { signalPassFailure(); } } } // end namespace std::unique_ptr<OperationPass<ModuleOp>> createLegalizeTFPass( bool legalize_chlo, std::optional<StringRef> tf2xla_fallback_device_type, bool prefer_tf2xla) { return std::make_unique<LegalizeTF>( legalize_chlo, tf2xla_fallback_device_type, prefer_tf2xla); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
std::unique_ptr<OperationPass<func::FuncOp>> CreateLegalizeTFPass( bool run_tfl_runtime_verification, bool preserve_assert_op) { return std::make_unique<LegalizeTFPass>(run_tfl_runtime_verification, preserve_assert_op); } std::unique_ptr<OperationPass<func::FuncOp>> CreateLegalizeTFPass() { return std::make_unique<LegalizeTFPass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_tfl_passes.cc
pass_manager->addNestedPass<mlir::func::FuncOp>( mlir::TF::CreateInitTextFileToImportPass(saved_model_dir.str())); pass_manager->addNestedPass<mlir::func::FuncOp>( mlir::TFL::CreateLegalizeTFPass(pass_config.runtime_verification, pass_config.preserve_assert_op)); pass_manager->addPass(mlir::TFL::CreateAnalyzeVariablesPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 25.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/passes.td
} def LegalizeTFPass : Pass<"tfl-legalize-tf", "mlir::func::FuncOp"> { let summary = "Legalize from TensorFlow to TensorFlow Lite dialect."; let constructor = "CreateLegalizeTFPass()"; let dependentDialects = ["TFL::TensorFlowLiteDialect" , "quant::QuantizationDialect", "quantfork::QuantizationForkDialect" ]; let options = [
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 22.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
if (lower_to_xla_hlo) { // Lower TF quant ops and types to MHLO int. mlir::quant::stablehlo::AddQuantizationLoweringPasses(pm); pm.addPass(mlir::mhlo::createLegalizeTFPass( legalize_chlo, /*tf2xla_fallback_device_type=*/device_type, enable_op_fallback)); } // This has to run after legalization. pm.addNestedPass<mlir::func::FuncOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0)