diff options
author | 2018-07-27 17:17:07 -0700 | |
---|---|---|
committer | 2018-07-27 17:21:04 -0700 | |
commit | 0cda579958a24c1947a086b4c9b3a1c374c3d1c6 (patch) | |
tree | 17498cdd057ab38fb0d18c95472245159cc35ae7 /tensorflow/contrib/cluster_resolver | |
parent | 13a9453aa3c9deccb0bccd7805fb1c34004a5525 (diff) |
Remove bytes prefix "b'" from tpu_cluster_resolver error messages
PiperOrigin-RevId: 206397604
Diffstat (limited to 'tensorflow/contrib/cluster_resolver')
-rw-r--r-- | tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py index 8f521ffee4..f9dc3effd0 100644 --- a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py +++ b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py @@ -259,11 +259,11 @@ class TPUClusterResolver(ClusterResolver): if 'state' in response and response['state'] != 'READY': raise RuntimeError('TPU "%s" is not yet ready; state: "%s"' % - (self._tpu, response['state'])) + (compat.as_text(self._tpu), response['state'])) if 'health' in response and response['health'] != 'HEALTHY': - raise RuntimeError('TPU "%s" is unhealthy: "%s"' % (self._tpu, - response['health'])) + raise RuntimeError('TPU "%s" is unhealthy: "%s"' % + (compat.as_text(self._tpu), response['health'])) if 'networkEndpoints' in response: worker_list = [ |