| 685 | } |
| 686 | |
| 687 | static void BM_TensorShape_Init(int iters, int arg) { |
| 688 | auto sizes = MakeSizes(arg); |
| 689 | while (--iters > 0) { |
| 690 | TensorShape shape(sizes); |
| 691 | tensorflow::testing::DoNotOptimize(shape.num_elements()); |
| 692 | } |
| 693 | } |
| 694 | BENCHMARK(BM_TensorShape_Init)->Arg(0)->Arg(1)->Arg(2)->Arg(3)->Arg(4); |
| 695 | |
| 696 | static void BM_TensorShape_Assign(int iters, int arg) { |
nothing calls this directly
no test coverage detected