From f0bf6c5191d224f229808f4b321158d890a481e0 Mon Sep 17 00:00:00 2001 From: James Qin Date: Wed, 25 Jul 2018 14:44:18 -0700 Subject: [PATCH] Minor change for better error msg in eager input type checking PiperOrigin-RevId: 206058281 --- tensorflow/core/common_runtime/eager/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/common_runtime/eager/execute.cc b/tensorflow/core/common_runtime/eager/execute.cc index 7ea78b63d93..0c0fbc729cc 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"); }