diff options
author | 2017-03-03 17:03:22 -0800 | |
---|---|---|
committer | 2017-03-03 17:28:36 -0800 | |
commit | ef7d75baec1b0b3861acef52f1973bbe379ae881 (patch) | |
tree | beb249ef6f763db338332107aac67fa14ed6d628 /tensorflow/core/util/reporter.h | |
parent | 9c86d93fd36db784677a50d0e4aca8fe6a342bac (diff) |
Fix code that ignores tensorflow::Status.
Change: 149170109
Diffstat (limited to 'tensorflow/core/util/reporter.h')
-rw-r--r-- | tensorflow/core/util/reporter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/util/reporter.h b/tensorflow/core/util/reporter.h index f69e5b546e..bcae12204e 100644 --- a/tensorflow/core/util/reporter.h +++ b/tensorflow/core/util/reporter.h @@ -75,7 +75,8 @@ class TestReporter { Status Benchmark(int64 iters, double cpu_time, double wall_time, double throughput); - ~TestReporter() { Close(); } // Autoclose in destructor. + // TODO(b/32704451): Don't just ignore the ::tensorflow::Status object! + ~TestReporter() { Close().IgnoreError(); } // Autoclose in destructor. private: static string GetLogEnv() { |