Benchmark a chain of simple multiplications. This emphasizes per-op overhead.
| 65 | // Benchmark a chain of simple multiplications. |
| 66 | // This emphasizes per-op overhead. |
| 67 | static 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 | } |
| 75 | BENCHMARK(BM_MulChain)->Arg(1 << 10); |
| 76 | |
| 77 | } // end namespace tensorflow |
nothing calls this directly
no test coverage detected