diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-03-01 15:31:18 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-03-01 15:43:47 -0800 |
commit | 076cb52c34efe33771be0ea97940f201565d9390 (patch) | |
tree | 6bb76ed93db80c0a2e1f6fabf6a3f53996e19af9 /tensorflow/core/util/device_name_utils.cc | |
parent | 8391470a8f3aa4e170ddfc65eb52747a5bda180a (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.cc | 2 |
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 { |