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

Function BM_GraphViewGetNode

tensorflow/core/grappler/graph_view_test.cc:337–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 ->ArgPair(100000, 16);
336
337static void BM_GraphViewGetNode(int iters, int num_nodes) {
338 testing::StopTiming();
339 const GraphDef graph_def =
340 test::CreateGraphDef(num_nodes, /*num_edges_per_node=*/16);
341 GraphView graph_view(&graph_def);
342
343 testing::StartTiming();
344 for (int i = 0; i < iters; ++i) {
345 graph_view.GetNode("out");
346 }
347 testing::StopTiming();
348}
349
350BENCHMARK(BM_GraphViewGetNode)
351 ->Arg(10)

Callers

nothing calls this directly

Calls 4

StopTimingFunction · 0.85
StartTimingFunction · 0.85
CreateGraphDefFunction · 0.50
GetNodeMethod · 0.45

Tested by

no test coverage detected