aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/device_name_utils.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-03-01 15:31:18 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-01 15:43:47 -0800
commit076cb52c34efe33771be0ea97940f201565d9390 (patch)
tree6bb76ed93db80c0a2e1f6fabf6a3f53996e19af9 /tensorflow/core/util/device_name_utils.cc
parent8391470a8f3aa4e170ddfc65eb52747a5bda180a (diff)
Fix DeviceNameUtils::ParsedNameToString to render non-CPU/GPU devices correctly.
Change: 148939552
Diffstat (limited to 'tensorflow/core/util/device_name_utils.cc')
-rw-r--r--tensorflow/core/util/device_name_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/util/device_name_utils.cc b/tensorflow/core/util/device_name_utils.cc
index ac18300496..64aa0ac209 100644
--- a/tensorflow/core/util/device_name_utils.cc
+++ b/tensorflow/core/util/device_name_utils.cc
@@ -178,7 +178,7 @@ string DeviceNameUtils::ParsedNameToString(const ParsedName& pn) {
if (pn.has_replica) strings::StrAppend(&buf, "/replica:", pn.replica);
if (pn.has_task) strings::StrAppend(&buf, "/task:", pn.task);
if (pn.has_type) {
- strings::StrAppend(&buf, "/", pn.type, ":");
+ strings::StrAppend(&buf, "/device:", pn.type, ":");
if (pn.has_id) {
strings::StrAppend(&buf, pn.id);
} else {