From 206278ca44e7e50869c60676e84710cdbc508c9f Mon Sep 17 00:00:00 2001 From: Hariharan Seshadri Date: Tue, 10 Sep 2019 15:40:53 -0700 Subject: [PATCH] Fix error message in Cast op (#1792) --- onnxruntime/core/providers/cpu/tensor/cast_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/cpu/tensor/cast_op.cc b/onnxruntime/core/providers/cpu/tensor/cast_op.cc index 0f8da8eaff..341060df1a 100644 --- a/onnxruntime/core/providers/cpu/tensor/cast_op.cc +++ b/onnxruntime/core/providers/cpu/tensor/cast_op.cc @@ -352,7 +352,7 @@ Status Cast::Compute(OpKernelContext* context) const { st = CastFloat16Data(X, Y, shape, context); break; case TensorProto_DataType_STRING: - ORT_THROW("Casting to and from strings is not supported yet."); /*break;*/ + ORT_THROW("Casting from 'float16' to 'string' is not supported yet."); /*break;*/ case TensorProto_DataType_UNDEFINED: ORT_THROW("Cast op must have 'to' argument of type DataType"); /*break;*/ default: