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

Function BM_SparseAdagrad

tensorflow/core/kernels/training_ops_test.cc:171–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170}
171static void BM_SparseAdagrad(int iters, int m, int n) {
172 const int64 tot = static_cast<int64>(iters) * m * n;
173 testing::UseRealTime();
174 testing::ItemsProcessed(tot);
175 testing::BytesProcessed(tot * sizeof(float));
176 Graph* init;
177 Graph* train;
178 SparseAdagrad(m, n, &init, &train);
179 test::Benchmark("cpu", train, GetMultiThreadedOptions(), init).Run(iters);
180}
181BENCHMARK(BM_SparseAdagrad)
182 ->ArgPair(128, 1 << 10)
183 ->ArgPair(128, 4 << 10)

Callers

nothing calls this directly

Calls 7

UseRealTimeFunction · 0.85
ItemsProcessedFunction · 0.85
BytesProcessedFunction · 0.85
SparseAdagradFunction · 0.85
GetMultiThreadedOptionsFunction · 0.70
BenchmarkClass · 0.50
RunMethod · 0.45

Tested by

no test coverage detected