aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar James Qin <jamesqin@google.com>2018-07-25 14:44:18 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-25 14:47:41 -0700
commitf0bf6c5191d224f229808f4b321158d890a481e0 (patch)
tree2e77817e33692c38f82319e6e1c7dc44f28ad5fc /tensorflow
parent438c8e2b0a164233347f3f1614ebeef6482f1650 (diff)
Minor change for better error msg in eager input type checking
PiperOrigin-RevId: 206058281
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/core/common_runtime/eager/execute.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/eager/execute.cc b/tensorflow/core/common_runtime/eager/execute.cc
index 7ea78b63d9..0c0fbc729c 100644
--- a/tensorflow/core/common_runtime/eager/execute.cc
+++ b/tensorflow/core/common_runtime/eager/execute.cc
@@ -175,7 +175,7 @@ Status ValidateInputTypeAndPlacement(EagerContext* ctx, Device* op_device,
tensorflow::TensorHandle* handle = op->Inputs()[i];
if (handle->dtype != kernel->input_type(i)) {
return errors::InvalidArgument(
- "cannot compute ", op->Name(), " as input #", i,
+ "cannot compute ", op->Name(), " as input #", i, "(zero-based)",
" was expected to be a ", DataTypeString(kernel->input_type(i)),
" tensor but is a ", DataTypeString(handle->dtype), " tensor");
}