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

Function BM_SGD

tensorflow/core/kernels/training_ops_test.cc:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static void BM_SGD(int iters, int params) {
107 const int64 tot = static_cast<int64>(iters) * params;
108 testing::ItemsProcessed(tot);
109 testing::BytesProcessed(tot * sizeof(float));
110 Graph* init;
111 Graph* train;
112 SGD(params, &init, &train);
113 test::Benchmark("cpu", train, GetOptions(), init).Run(iters);
114}
115BENCHMARK(BM_SGD)->Arg(128 << 10)->Arg(256 << 10);
116
117static void Adagrad(int32 n, Graph** init_g, Graph** train_g) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected