diff options
author | Eugene Brevdo <ebrevdo@google.com> | 2018-07-09 07:34:55 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-07-09 07:37:59 -0700 |
commit | 4f2b576bf388db470fea166c6cc68fece455cdd9 (patch) | |
tree | 613cc93b681125a540dfd1ddb2ef3d287d6ed1dc /tensorflow/python/platform | |
parent | 75a80aa3aa32fa12b74387b67f3d73aca532fc89 (diff) |
Fix indentation bug in benchmark output.
Benchmark should emit info even if extras is None.
PiperOrigin-RevId: 203762356
Diffstat (limited to 'tensorflow/python/platform')
-rw-r--r-- | tensorflow/python/platform/benchmark.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/python/platform/benchmark.py b/tensorflow/python/platform/benchmark.py index eba2baaf6f..fa17b17d10 100644 --- a/tensorflow/python/platform/benchmark.py +++ b/tensorflow/python/platform/benchmark.py @@ -66,11 +66,11 @@ def _global_report_benchmark( if not isinstance(extras, dict): raise TypeError("extras must be a dict") - logging.info("Benchmark [%s] iters: %d, wall_time: %g, cpu_time: %g," - "throughput: %g %s", name, iters if iters is not None else -1, - wall_time if wall_time is not None else -1, cpu_time if - cpu_time is not None else -1, throughput if - throughput is not None else -1, str(extras) if extras else "") + logging.info("Benchmark [%s] iters: %d, wall_time: %g, cpu_time: %g," + "throughput: %g %s", name, iters if iters is not None else -1, + wall_time if wall_time is not None else -1, cpu_time if + cpu_time is not None else -1, throughput if + throughput is not None else -1, str(extras) if extras else "") entries = test_log_pb2.BenchmarkEntries() entry = entries.entry.add() |