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

Method Benchmark

tensorflow/core/util/reporter.cc:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72Status TestReporter::Benchmark(int64 iters, double cpu_time, double wall_time,
73 double throughput) {
74 if (report_file_.IsClosed()) return Status::OK();
75 benchmark_entry_.set_iters(iters);
76 benchmark_entry_.set_cpu_time(cpu_time / iters);
77 benchmark_entry_.set_wall_time(wall_time / iters);
78 benchmark_entry_.set_throughput(throughput);
79 return Status::OK();
80}
81
82Status TestReporter::SetProperty(const string& name, const string& value) {
83 if (report_file_.IsClosed()) return Status::OK();

Callers 7

RecordBenchmarkEntryFunction · 0.45
_benchmarkGatherMethod · 0.45
TESTFunction · 0.45

Calls 1

IsClosedMethod · 0.45

Tested by 6

_benchmarkGatherMethod · 0.36
TESTFunction · 0.36