diff options
Diffstat (limited to 'tensorflow/core/util/device_name_utils.cc')
-rw-r--r-- | tensorflow/core/util/device_name_utils.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/core/util/device_name_utils.cc b/tensorflow/core/util/device_name_utils.cc index c38b5758fa..ac18300496 100644 --- a/tensorflow/core/util/device_name_utils.cc +++ b/tensorflow/core/util/device_name_utils.cc @@ -142,6 +142,7 @@ bool DeviceNameUtils::ParseFullName(StringPiece fullname, ParsedName* p) { progress = true; } + // Handle legacy naming convention for cpu and gpu. if (str_util::ConsumePrefix(&fullname, "/cpu:") || str_util::ConsumePrefix(&fullname, "/CPU:")) { p->has_type = true; |