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

Function RecordBenchmarkEntry

tensorflow/tools/benchmark/benchmark_model.cc:215–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void RecordBenchmarkEntry(const string& output_prefix,
216 const string& benchmark_name, const string& postfix,
217 int num_runs, double total_time_s,
218 double throughput = -1.0) {
219 std::stringstream stream;
220 stream << benchmark_name;
221 if (!postfix.empty()) {
222 stream << "_" << postfix;
223 }
224
225 TestReporter node_reporter(output_prefix, stream.str());
226 TF_QCHECK_OK(node_reporter.Initialize());
227 TF_QCHECK_OK(
228 node_reporter.Benchmark(num_runs, -1.0, total_time_s, throughput));
229 TF_QCHECK_OK(node_reporter.Close());
230}
231
232void SleepSeconds(double sleep_seconds) {
233 if (sleep_seconds <= 0.0) {

Callers 1

MainFunction · 0.85

Calls 4

emptyMethod · 0.45
InitializeMethod · 0.45
BenchmarkMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected