- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GetEntryFunctions (0.22 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util_test.cc
EXPECT_EQ(attr_names.size(), 2); EXPECT_EQ(attr_names[0], "tf.entry_function"); EXPECT_EQ(attr_names[1], mlir::tf_saved_model::kTfSavedModelInitializerTypeAttr); } TEST(CallGraphUtilTest, GetEntryFunctions) { const char *const code = R"mlir( func.func @entry_func_1(%arg0: tensor<i32>) -> tensor<i32> attributes {tf.entry_function = {}} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 04:39:18 UTC 2023 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc
} } return success(); } void XlaValidateInputsPass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symtab(module); llvm::SmallVector<func::FuncOp> entry_funcs = GetEntryFunctions(module); if (entry_funcs.empty()) { LOG(WARNING) << "missing entry functions"; } if (HasNoNestedEntryFunctions(entry_funcs, symtab).failed()) { return signalPassFailure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 19:29:14 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc
for (const auto &attr : GetEntryFunctionAttributeNames()) { if (func->hasAttr(attr)) { return true; } } return false; } llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module) { llvm::SmallVector<func::FuncOp> entry_funcs; module.walk([&](func::FuncOp func) { // A model may have multiple graphs, with each graph having its own entry.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.h
// Check if a function is an entry in an MLIR module. bool IsEntryFunction(func::FuncOp func); // Get all the entry functions in an MLIR module. llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module); // Get all the functions referenced in a symber user op and save them in // `callees`. LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Dec 16 06:18:49 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc
ModuleOp module = getOperation(); SymbolTableCollection symbol_table_collection; SymbolTable symtab = symbol_table_collection.getSymbolTable(module); llvm::SmallVector<FuncOp> entry_funcs = GetEntryFunctions(module); for (auto &entry_func : entry_funcs) { if (EncapsulateFirstXlaCompilablePartitionedCalls( entry_func, symbol_table_collection, symtab) .failed()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 19:09:44 UTC 2023 - 6K bytes - Viewed (0)