Skip to content

Commit

Permalink
fix typo and improve the error info.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsakusaRinne committed Mar 17, 2024
1 parent c208a88 commit 26eca95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/frontends/pytorch/src/translate_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ std::shared_ptr<Model> TranslateSession::convert_pytorch_model(
FRONT_END_OP_CONVERSION_CHECK(fw_outputs.size() <= converted_outputs.size(),
"Number of ",
context.get_op_type(),
" outputs greater then number of converted outputs.");
" outputs greater than number of converted outputs, which are",
fw_outputs.size(),
" and ",
converted_outputs.size(),
" respectively.");

for (size_t i = 0; i < fw_outputs.size(); ++i) {
size_t fw_tensor_id = node->output(i);
Expand Down

0 comments on commit 26eca95

Please sign in to comment.