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: