aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/benchmark
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-02-13 15:34:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-13 17:24:58 -0800
commitbc225bfaa534acc25047fe844f19edc333b7a76a (patch)
treefa76941d893ad2e31d0961194c68893a4dc29c5a /tensorflow/tools/benchmark
parentd065a5d984794a0e59bc1787010ef4b911d4ef89 (diff)
Fix code that ignores tensorflow::Status.
Add a new tensorflow::Status::IgnoreError() method to mark call sites where a Status has been intentionally ignored. Change: 147402405
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r--tensorflow/tools/benchmark/benchmark_model.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/tools/benchmark/benchmark_model.cc b/tensorflow/tools/benchmark/benchmark_model.cc
index 180600e3b4..10a20db956 100644
--- a/tensorflow/tools/benchmark/benchmark_model.cc
+++ b/tensorflow/tools/benchmark/benchmark_model.cc
@@ -454,9 +454,9 @@ int Main(int argc, char** argv) {
// Report the stats.
TestReporter reporter(output_prefix, benchmark_name);
- reporter.Initialize();
- reporter.Benchmark(num_runs, -1.0, wall_time, throughput);
- reporter.Close();
+ TF_QCHECK_OK(reporter.Initialize());
+ TF_QCHECK_OK(reporter.Benchmark(num_runs, -1.0, wall_time, throughput));
+ TF_QCHECK_OK(reporter.Close());
}
return 0;