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

Function BM_Momentum

tensorflow/core/kernels/training_ops_test.cc:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211static void BM_Momentum(int iters, int params) {
212 const int64 tot = static_cast<int64>(iters) * params;
213 testing::ItemsProcessed(tot);
214 testing::BytesProcessed(tot * sizeof(float));
215 Graph* init;
216 Graph* train;
217 Momentum(params, &init, &train);
218 test::Benchmark("cpu", train, GetOptions(), init).Run(iters);
219}
220BENCHMARK(BM_Momentum)->Arg(128 << 10)->Arg(256 << 10);
221
222static void Adam(int32 n, Graph** init_g, Graph** train_g) {

Callers

nothing calls this directly

Calls 6

ItemsProcessedFunction · 0.85
BytesProcessedFunction · 0.85
MomentumFunction · 0.85
GetOptionsFunction · 0.70
BenchmarkClass · 0.50
RunMethod · 0.45

Tested by

no test coverage detected