diff options
-rw-r--r-- | tensorflow/core/framework/resource_mgr.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/framework/resource_mgr.cc b/tensorflow/core/framework/resource_mgr.cc index 21fc6c1bd5..0a19861efd 100644 --- a/tensorflow/core/framework/resource_mgr.cc +++ b/tensorflow/core/framework/resource_mgr.cc @@ -60,8 +60,8 @@ namespace internal { Status ValidateDevice(OpKernelContext* ctx, const ResourceHandle& p) { if (ctx->device()->attributes().name() != p.device()) { return errors::InvalidArgument( - "Trying to access resource located in device ", p.device(), - " from device ", ctx->device()->attributes().name()); + "Trying to access resource ", p.name(), " located in device ", + p.device(), " from device ", ctx->device()->attributes().name()); } return Status::OK(); } |