- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for createLegalizeTFPass (0.36 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.cc
pm.addPass(mlir::createSymbolDCEPass()); pm.addPass(mlir::TF::CreateTFShapeInferencePass()); llvm::StringRef tf2xla_fallback_device_type = "XLA_CPU_JIT"; pm.addPass(mlir::mhlo::createLegalizeTFPass( /*legalize_chlo=*/true, tf2xla_fallback_device_type, /*prefer_tf2xla=*/false)); pm.addPass(mlir::TF::CreateStripTfAttributesPass()); pm.addPass(mlir::createCanonicalizerPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 09 22:39:15 UTC 2024 - 3.3K bytes - Viewed (0) -
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_passes.td
/*default=*/"false", "Prioritize tf2xla fallback legalization over MLIR legalization " "patterns">, ]; let constructor = "mlir::mhlo::createLegalizeTFPass()"; let dependentDialects = [ "arith::ArithDialect", "chlo::ChloDialect", "func::FuncDialect", "mhlo::MhloDialect", "quant::QuantizationDialect", "shape::ShapeDialect",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 17:44:14 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tac_module.cc
/*allow_bf16_and_f16_type_legalization=*/false)); pass_manager->addNestedPass<mlir::func::FuncOp>( mlir::createCanonicalizerPass()); pass_manager->addPass( mlir::TFL::CreateLegalizeTFPass(/*run_tfl_runtime_verification=*/true)); pass_manager->addPass( mlir::TFL::CreateOptimizePass(/*enable_canonicalization=*/true)); } pass_manager->addPass(mlir::TFL::tac::CreateComputeCostPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.6K bytes - Viewed (0)