diff options
author | Rui Zhao <rzhao@google.com> | 2018-02-26 09:32:47 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-02-26 09:37:03 -0800 |
commit | 9e823230c42b9e2ba08726ef711ebaff7e1de7af (patch) | |
tree | 485edcbf6e977d001633a164dfccb3a94b91eec8 /tensorflow/python/grappler | |
parent | c76dd17b2086b760ac38e1e12ec3d4df6268d0b3 (diff) |
Fix print format error.
PiperOrigin-RevId: 187033623
Diffstat (limited to 'tensorflow/python/grappler')
-rw-r--r-- | tensorflow/python/grappler/hierarchical_controller.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tensorflow/python/grappler/hierarchical_controller.py b/tensorflow/python/grappler/hierarchical_controller.py index 655e43e78f..b06fb3c6d0 100644 --- a/tensorflow/python/grappler/hierarchical_controller.py +++ b/tensorflow/python/grappler/hierarchical_controller.py @@ -612,10 +612,10 @@ class HierarchicalController(Controller): num_inter_group_connections = num_connections - num_intra_group_connections if verbose: print("grouping evaluation metric") - print("num_connections={} num_intra_group_connections={} " - "num_inter_group_connections={}").format( - num_connections, num_intra_group_connections, - num_inter_group_connections) + print(("num_connections={} num_intra_group_connections={} " + "num_inter_group_connections={}").format( + num_connections, num_intra_group_connections, + num_inter_group_connections)) self.dag_matrix = dag_matrix # output_shape @@ -972,8 +972,8 @@ class HierarchicalController(Controller): controller_ops["reward"]["ph"][child_id]: reward, }) if verbose: - print("run_time={:<.5f} reward={:<.5f} " - "best_reward={:<.5f}").format(run_time, reward, best_reward) + print(("run_time={:<.5f} reward={:<.5f} " + "best_reward={:<.5f}").format(run_time, reward, best_reward)) # Reward is a double, best_reward a float: allow for some slack in the # comparison. |