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

Function BM_MulChain

tensorflow/core/kernels/basic_ops_benchmark_test.cc:67–74  ·  view source on GitHub ↗

Benchmark a chain of simple multiplications. This emphasizes per-op overhead.

Source from the content-addressed store, hash-verified

65// Benchmark a chain of simple multiplications.
66// This emphasizes per-op overhead.
67static void BM_MulChain(int iters, int chain_length) {
68 const int64 tot = static_cast<int64>(iters) * chain_length;
69 testing::ItemsProcessed(tot);
70 Graph* init;
71 Graph* run;
72 MulChain(chain_length, &init, &run);
73 test::Benchmark("cpu", run, GetOptions(), init).Run(iters);
74}
75BENCHMARK(BM_MulChain)->Arg(1 << 10);
76
77} // end namespace tensorflow

Callers

nothing calls this directly

Calls 5

ItemsProcessedFunction · 0.85
MulChainFunction · 0.85
GetOptionsFunction · 0.70
BenchmarkClass · 0.50
RunMethod · 0.45

Tested by

no test coverage detected