Skip to content

Commit

Permalink
[PT FE] Fix typo and improve the error info. (openvinotoolkit#23507)
Browse files Browse the repository at this point in the history
### Details:
 - *Fix the typo of the code (then -> than)*
- *Improve the error info here, to let developer know the size of output
if the assertion fails.*

### Tickets:
 - *No ticket id*
  • Loading branch information
AsakusaRinne authored and bbielawx committed Apr 12, 2024
1 parent cea14ad commit a2f3a8d
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 a2f3a8d

Please sign in to comment.