Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pskiran1 committed Jul 19, 2024
1 parent 8b5e3ba commit 5b8c263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/instance_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ ModelInstanceState::Run(
payload_->responses_,
TRITONSERVER_ErrorNew(
TRITONSERVER_ERROR_INVALID_ARG,
(std::string("tensor for input '") + name +
"' expected byte size is " +
std::to_string(total_byte_size) + ", got " +
(std::string("input byte size mismatch for input '") + name +
"'" + " for model '" + model_state_->Name() +
"'. Expected " + std::to_string(total_byte_size) + ", got " +
std::to_string(req_data_byte_size))
.c_str()),
"failed to run TRT inference");
Expand Down

0 comments on commit 5b8c263

Please sign in to comment.