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

Function BM_GraphViewGetFanout

tensorflow/core/grappler/graph_view_test.cc:387–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 ->ArgPair(100000, 100000);
386
387static void BM_GraphViewGetFanout(int iters, int num_fanins, int num_fanouts) {
388 testing::StopTiming();
389 const GraphDef graph_def = test::CreateFaninFanoutNodeGraph(
390 num_fanins, num_fanouts, num_fanins, num_fanouts,
391 /*fanout_unique_index=*/true);
392 GraphView graph_view(&graph_def);
393
394 testing::StartTiming();
395 for (int i = 0; i < iters; ++i) {
396 const NodeDef* node = graph_view.GetNode("node");
397 graph_view.GetFanout({node, 0});
398 }
399 testing::StopTiming();
400}
401
402RUN_FANIN_FANOUT_BENCHMARK(BM_GraphViewGetFanout);
403

Callers

nothing calls this directly

Calls 4

StopTimingFunction · 0.85
StartTimingFunction · 0.85
GetNodeMethod · 0.45

Tested by

no test coverage detected