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

Function RunReverseRowsBenchmark

tensorflow/core/kernels/reverse_op_test.cc:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197template <typename T>
198static 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
209static void BM_ReverseRowsOf1Channel_1T_float(int iters, int outer_dim,
210 int middle_dim) {

Callers

nothing calls this directly

Calls 7

ItemsProcessedFunction · 0.85
BytesProcessedFunction · 0.85
UseRealTimeFunction · 0.85
GetOptionsFunction · 0.70
BenchmarkClass · 0.50
num_elementsMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected