- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for addNestedPass (0.5 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc
}; TEST_F(EnableIrPrintingTest, PassSuccessfullyRuns) { mlir::PassManager pm = {ctx_.get()}; pm.addPass(CreateNoOpPass()); pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass()); pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass()); EnableIrPrinting(pm, "dump"); constexpr absl::string_view program = R"mlir( module{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:17:14 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc
continue; } op.setValueAttr(DenseStringElementsAttr::get(shaped_type, {filename})); } } // Run the lowering pass. PassManager pm(context); pm.addNestedPass<func::FuncOp>(CreateInitTextFileToImportPass("")); if (failed(pm.run(module))) return signalPassFailure(); } #define GEN_PASS_DEF_INITTEXTFILETOIMPORTSAVEDMODELTESTPASS
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc
// Inline and optimize loaded functions. MLIRContext* context = &getContext(); PassManager pm(context); pm.addPass(createInlinerPass()); pm.addNestedPass<func::FuncOp>(createCanonicalizerPass()); pm.addNestedPass<func::FuncOp>(createCSEPass()); StatusScopedDiagnosticHandler diagnostic_handler(context); if (failed(pm.run(*module_ref))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc
pm.addPass(CreateTFShapeInferencePass()); if (options.enable_inliner) { pm.addPass(createInlinerPass()); } pm.addPass(createSymbolDCEPass()); pm.addNestedPass<func::FuncOp>(CreateTFOptimizePass()); pm.addNestedPass<func::FuncOp>(createCSEPass()); } std::unique_ptr<OperationPass<func::FuncOp>> CreateTFOptimizePass() { return std::make_unique<TensorFlowOptimizePass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc
TF_ASSERT_OK_AND_ASSIGN(module_, GetMlirModuleFromString(module_string, &context_)); pm_ = std::make_unique<mlir::PassManager>(&context_); pm_->addNestedPass<mlir::func::FuncOp>(CreateVerifyClusteringPass()); } mlir::LogicalResult Run() { return pm_->run(module_.get()); } private: mlir::MLIRContext context_; mlir::OwningOpRef<mlir::ModuleOp> module_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 17:03:53 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_optimization_pass.cc
::tensorflow::applyTensorflowAndCLOptions(pm); // Run island coarsening before shape inference to allow more exact shape // inference using constant folding within islands. pm.addNestedPass<func::FuncOp>( tf_executor::CreateTFExecutorIslandCoarseningPass()); pm.addPass(CreateTFShapeInferencePass()); // Assign optimal data layout to layout sensitive operations and delete
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc
TF_ASSERT_OK(env_->GetChildren(test_dir_, &files)); EXPECT_THAT(files, ::testing::IsEmpty()); TF_ASSERT_OK(CreateMlirModule("dead_const.mlir")); PassManager pass_manager(&context_); pass_manager.addNestedPass<FuncOp>(mlir::createCanonicalizerPass()); EnablePassIRPrinting(pass_manager, test_group_name_); LogicalResult pass_status = pass_manager.run(mlir_module_.get()); EXPECT_TRUE(pass_status.succeeded());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc
TF_ASSERT_OK_AND_ASSIGN(module_, GetMlirModuleFromString(module_string, &context_)); pm_ = std::make_unique<mlir::PassManager>(&context_); pm_->addNestedPass<func::FuncOp>( CreateVerifyNoOutsideCompilationMarkersPass()); } mlir::LogicalResult Run() { return pm_->run(module_.get()); } private: MLIRContext context_; OwningOpRef<ModuleOp> module_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc
TF_ASSERT_OK_AND_ASSIGN(module_, GetMlirModuleFromString(module_string, &context_)); pm_ = std::make_unique<mlir::PassManager>(&context_); pm_->addNestedPass<mlir::func::FuncOp>(CreateInputLoweringMetricsPass()); } bool ModulesEqual(const ModuleOp& module_before, const ModuleOp& module_after) { return mlir::OperationEquivalence::isEquivalentTo(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 23 19:42:09 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc
context_.appendDialectRegistry(mlir_registry); TF_ASSERT_OK( tensorflow::DeserializeMlirModule(module_string, &context_, &module_)); pm_ = std::make_unique<mlir::PassManager>(&context_); pm_->addNestedPass<mlir::func::FuncOp>( quant::stablehlo::CreateConvertTFQuantTypesPass()); } mlir::LogicalResult Run() { return pm_->run(module_.get()); } private: MLIRContext context_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 09:05:02 UTC 2024 - 4.2K bytes - Viewed (0)