aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/reporter.h
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2017-03-03 17:03:22 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-03 17:28:36 -0800
commitef7d75baec1b0b3861acef52f1973bbe379ae881 (patch)
treebeb249ef6f763db338332107aac67fa14ed6d628 /tensorflow/core/util/reporter.h
parent9c86d93fd36db784677a50d0e4aca8fe6a342bac (diff)
Fix code that ignores tensorflow::Status.
Change: 149170109
Diffstat (limited to 'tensorflow/core/util/reporter.h')
-rw-r--r--tensorflow/core/util/reporter.h3
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() {