- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HasSingleBlock (0.27 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc
return op->emitError() << "Cannot find function " << sym.getRootReference(); } callees.push_back(callee); } return success(); } bool HasSingleBlock(func::FuncOp func) { return func->getNumRegions() == 1 && func.getBody().hasOneBlock(); }
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_test.cc
llvm::SmallVector<mlir::func::FuncOp> entry_funcs = GetEntryFunctions(*module); EXPECT_EQ(entry_funcs.size(), 1); EXPECT_EQ(entry_funcs[0].getSymName(), "entry_func"); EXPECT_TRUE(HasSingleBlock(entry_funcs[0])); } TEST(CallGraphUtilTest, MultipleBlocksEntryFunction) { const char *const code = R"mlir( func.func @entry_func(%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/utils/call_graph_util.h
} return WalkResult::advance(); }); if (result.wasInterrupted()) return failure(); } return success(); } // Check if a function has one region and one block only. bool HasSingleBlock(func::FuncOp func); } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Dec 16 06:18:49 UTC 2023 - 4.3K bytes - Viewed (0)