aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tensorflow/python/grappler/hierarchical_controller.py12
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.