diff options
author | 2017-08-11 12:59:11 -0700 | |
---|---|---|
committer | 2017-08-11 13:03:00 -0700 | |
commit | faee3db0f1b37180ffffe7c41093278c8d6018f6 (patch) | |
tree | d2f22561c3a71a7999f85f5e06a5690758d5f040 /tensorflow/tools/benchmark | |
parent | 76f180120b5278edf5d16ee89a45c9d71597cd4b (diff) |
benchmark_model_test: initialize num_runs to 0 as TimeMultipleRuns merely increments the value
PiperOrigin-RevId: 165013681
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r-- | tensorflow/tools/benchmark/benchmark_model_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/benchmark/benchmark_model_test.cc b/tensorflow/tools/benchmark/benchmark_model_test.cc index c8deeb3625..bb4eb53520 100644 --- a/tensorflow/tools/benchmark/benchmark_model_test.cc +++ b/tensorflow/tools/benchmark/benchmark_model_test.cc @@ -62,7 +62,7 @@ TEST(BenchmarkModelTest, InitializeAndRun) { std::unique_ptr<StatSummarizer> stats; stats.reset(new tensorflow::StatSummarizer(*(loaded_graph_def.get()))); int64 time; - int64 num_runs; + int64 num_runs = 0; TF_ASSERT_OK(benchmark_model::TimeMultipleRuns( 0.0, 10, 0.0, {input}, {output_name}, session.get(), stats.get(), &time, &num_runs)); |