Use canonical CPU device name in TensorHandle::Resolve.
PiperOrigin-RevId: 305124817
Change-Id: I2e51fa917503d4deab90ed57b1407f77a89c280f
diff --git a/tensorflow/core/common_runtime/eager/core.cc b/tensorflow/core/common_runtime/eager/core.cc
index 20500ac..de7e747 100644
--- a/tensorflow/core/common_runtime/eager/core.cc
+++ b/tensorflow/core/common_runtime/eager/core.cc
@@ -41,7 +41,7 @@
auto* custom_device = absl::get<CustomDevice*>(device());
TensorHandle* copy;
*status = custom_device->CopyTensorFromDevice(
- this, "/job:localhost/task:0/replica:0/device:CPU:0", ©);
+ this, "/job:localhost/replica:0/task:0/device:CPU:0", ©);
if (status->ok()) {
return copy->Resolve(status);
} else {