diff --git a/src/infer_request.cc b/src/infer_request.cc index 1c884db63..ed9f8dc7d 100644 --- a/src/infer_request.cc +++ b/src/infer_request.cc @@ -807,7 +807,9 @@ InferenceRequest::Normalize() if (!has_one_element) { return Status( Status::Code::INVALID_ARG, LogRequest() + - "For BYTE datatype raw input, the " + "For BYTE datatype raw input '" + + config_input.name() + + "', the " "model must have input shape [1]"); } // In the case of BYTE data type, we will prepend the byte size to follow @@ -946,13 +948,13 @@ InferenceRequest::Normalize() if (input.DType() != input_config->data_type()) { return Status( Status::Code::INVALID_ARG, - LogRequest() + "inference input data-type is '" + + LogRequest() + "inference input '" + pr.first + "' data-type is '" + std::string( triton::common::DataTypeToProtocolString(input.DType())) + - "', model expects '" + + "', but model '" + ModelName() + "' expects '" + std::string(triton::common::DataTypeToProtocolString( input_config->data_type())) + - "' for '" + ModelName() + "'"); + "'"); } // Validate input shape