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

Function TEST

tensorflow/lite/graph_info_test.cc:117–123  ·  view source on GitHub ↗

Test an empty trivial graph with no partitions.

Source from the content-addressed store, hash-verified

115
116// Test an empty trivial graph with no partitions.
117TEST(PartitionTest, Nodes0PartitionNodes0) {
118 SimpleTestGraph graph;
119 std::vector<int> nodes_to_partition = {};
120 std::vector<NodeSubset> generated_subgraphs;
121 PartitionGraph(graph, nodes_to_partition, &generated_subgraphs);
122 CheckPartitionSubgraphs(generated_subgraphs, {});
123}
124
125// Test a trivial graph with no node and only 1 tensor.
126// The tensor is input & output of the graph at the same time.

Callers

nothing calls this directly

Calls 5

PartitionGraphFunction · 0.85
CheckPartitionSubgraphsFunction · 0.85
AddTensorsMethod · 0.45
SetInputsAndOutputsMethod · 0.45
AddNodeMethod · 0.45

Tested by

no test coverage detected