| 196 | |
| 197 | template <typename T> |
| 198 | static void RunReverseRowsBenchmark(int iters, int outer_dim, int middle_dim, |
| 199 | int intra_threads, int channels) { |
| 200 | SessionOptions opts = GetOptions(intra_threads); |
| 201 | TensorShape shape{outer_dim, middle_dim, channels}; |
| 202 | const int64 num_items = static_cast<int64>(iters) * shape.num_elements(); |
| 203 | testing::ItemsProcessed(num_items); |
| 204 | testing::BytesProcessed(num_items * sizeof(T)); |
| 205 | testing::UseRealTime(); |
| 206 | test::Benchmark("cpu", Reverse<T>(shape, 1), &opts).Run(iters); |
| 207 | } |
| 208 | |
| 209 | static void BM_ReverseRowsOf1Channel_1T_float(int iters, int outer_dim, |
| 210 | int middle_dim) { |
nothing calls this directly
no test coverage detected