- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 306 for ModuleOp (0.25 sec)
-
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h
StringPiece func_name); // Runs the decompose passes on the user_module. Status DecomposeGraph(mlir::ModuleOp user_module); // Erases the tfr_module created. void Destroy(); private: mlir::ModuleOp tfr_module_; mlir::PassManager pm_; GraphExportConfig export_confs_; }; // Decomposes the NodeDef to a set of primitive ops according to the decompose
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 11:12:54 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td
"mlir::TFL::TFLDialect", ]; } def LegalizeHloToTfPass : Pass<"tf-legalize-hlo", "ModuleOp"> { let summary = "Legalize from MHLO to the TF dialect"; let dependentDialects = ["TF::TensorFlowDialect"]; let constructor = "mlir::odml::CreateLegalizeHloToTfPass()"; } def LegalizeHloToTfLitePass : Pass<"tfl-legalize-hlo", "mlir::ModuleOp"> { let summary = "Legalize from MHLO to the TFLite dialect";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h
std::unique_ptr<OperationPass<ModuleOp>> CreateQuantizeWeightsPass( const tensorflow::quantization::QuantizationOptions& quant_options); // Propagate quantized type through allowed ops. std::unique_ptr<OperationPass<ModuleOp>> CreatePropagateQuantizeTypePass(); // Create a pass that inserts dump tensor to quantizable layer's output. std::unique_ptr<OperationPass<ModuleOp>> CreateAddDumpTensorOpPass(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h
SessionInitializerOp GetSessionInitializerOp(ModuleOp module_op); // Returns the exported name for the session initializer function. SmallVector<StringRef, 2> GetSessionInitializerExportedName(ModuleOp module_op); // Returns initializer function ops. These functions' symbols are in the // "initializers" attribute of the session initializer op. SmallVector<func::FuncOp, 2> GetInitializerFunctions(ModuleOp module_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 03:21:34 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.h
// `module_op` is the input graph to be quantized and it should contain // StableHLO ops. // // Returns a quantized `ModuleOp` in StableHLO, potentially wrapped inside a // XlaCallModuleOp. Returns a non-OK status if quantization fails, or any of // `saved_model_bundle` or `quantization_py_function_lib` is a nullptr. absl::StatusOr<mlir::ModuleOp> RunQuantization( const SavedModelBundle* saved_model_bundle, absl::string_view saved_model_dir,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 02:44:03 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
} // Creates a pruned module containing the XlaCallModule's entry function and // other functions transitively called by the entry function. FailureOr<OwningOpRef<ModuleOp>> PruneStablehloModule( SymbolTableCollection& symbol_table, ModuleOp module, XlaCallModuleOp op) { auto entry_func_symbol = op->getAttrOfType<FlatSymbolRefAttr>(kStablehloEntryFunctionAttrName); if (!entry_func_symbol) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h
std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateExtractOutsideCompilationPass(); // Create a pass that encapsulates StatefulPartitionedCallOp within a cluster. std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateXlaClusterFormationPass(); // Creates a pass that marks unsupported ops in device cluster for outside // compilation. std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateMarkOpsForOutsideCompilationPass();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import_test.cc
using UpdateFunctionAliasesTest = ::mlir::quant::QuantizationTestBase; TEST_F(UpdateFunctionAliasesTest, NoAliasesReturnsEmptyMap) { // MLIR @main function corresponds to the TF function "main_original". OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir( func.func private @main(%arg: tensor<1x2xf32>) -> (tensor<1x2xf32>) attributes {tf._original_func_name = "main_original"} { return %arg : tensor<1x2xf32> } )mlir");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 03:47:17 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc
} bool ModulesEqual(const ModuleOp& module_before, const ModuleOp& module_after) { return mlir::OperationEquivalence::isEquivalentTo( module_before, module_after, mlir::OperationEquivalence::None); } mlir::LogicalResult Run() { mlir::OwningOpRef<mlir::ModuleOp> module_before = module_->clone(); LogicalResult run_result = pm_->run(module_.get());
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/tensorflow/utils/dump_mlir_util_test.cc
mlir::OwningOpRef<mlir::ModuleOp> module_ref = mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); unsetenv("TF_DUMP_GRAPH_PREFIX"); std::string filepath = DumpMlirOpToFile("module", module_ref.get()); EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); } TEST(DumpMlirModuleTest, LogInfo) { mlir::MLIRContext context; mlir::OwningOpRef<mlir::ModuleOp> module_ref =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 18 13:40:21 UTC 2024 - 5.8K bytes - Viewed (0)