From c99a94256e95a7bce7dd897c165c2c74320f7f18 Mon Sep 17 00:00:00 2001 From: Rinne Date: Wed, 20 Mar 2024 01:08:43 +0800 Subject: [PATCH] [PT FE] Fix typo and improve the error info. (#23507) ### 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* --- src/frontends/pytorch/src/translate_session.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/pytorch/src/translate_session.cpp b/src/frontends/pytorch/src/translate_session.cpp index c9b6ea0609f150..5f74b2c712cf2e 100644 --- a/src/frontends/pytorch/src/translate_session.cpp +++ b/src/frontends/pytorch/src/translate_session.cpp @@ -155,7 +155,11 @@ std::shared_ptr 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);