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

Function BM_Adagrad

tensorflow/core/kernels/training_ops_test.cc:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static void BM_Adagrad(int iters, int params) {
139 const int64 tot = static_cast<int64>(iters) * params;
140 testing::ItemsProcessed(tot);
141 testing::BytesProcessed(tot * sizeof(float));
142 Graph* init;
143 Graph* train;
144 Adagrad(params, &init, &train);
145 test::Benchmark("cpu", train, GetOptions(), init).Run(iters);
146}
147BENCHMARK(BM_Adagrad)->Arg(128 << 10)->Arg(256 << 10);
148
149static void SparseAdagrad(int32 m, int32 n, Graph** init_g, Graph** train_g) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected