MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/core/common_runtime/partitioning_utils_test.cc:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109};
110
111TEST_F(PartitioningUtilsTest, GraphWithoutAssignedDevicesFails) {
112 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global());
113 SwapGraph(graph.get());
114
115 std::unordered_map<string, std::unique_ptr<Graph>> subgraphs;
116 Status status =
117 PartitionFunctionGraph(device_set_, std::move(graph), &subgraphs);
118 ASSERT_TRUE(errors::IsInvalidArgument(status)) << status.ToString();
119}
120
121TEST_F(PartitioningUtilsTest, OneDevice) {
122 std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global());

Callers

nothing calls this directly

Calls 14

PartitionFunctionGraphFunction · 0.85
CheckIndicesFunction · 0.85
CheckAllocFunction · 0.85
CheckIndexFunction · 0.85
num_op_nodesMethod · 0.80
BuildNodeNameIndexMethod · 0.80
SubGraphClass · 0.50
getMethod · 0.45
ToStringMethod · 0.45
okMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected