Skip to content

Commit 5b8c263

Browse files
committed
Improve error message
1 parent 8b5e3ba commit 5b8c263

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/instance_state.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -778,9 +778,9 @@ ModelInstanceState::Run(
778778
payload_->responses_,
779779
TRITONSERVER_ErrorNew(
780780
TRITONSERVER_ERROR_INVALID_ARG,
781-
(std::string("tensor for input '") + name +
782-
"' expected byte size is " +
783-
std::to_string(total_byte_size) + ", got " +
781+
(std::string("input byte size mismatch for input '") + name +
782+
"'" + " for model '" + model_state_->Name() +
783+
"'. Expected " + std::to_string(total_byte_size) + ", got " +
784784
std::to_string(req_data_byte_size))
785785
.c_str()),
786786
"failed to run TRT inference");

0 commit comments

Comments
 (0)