From 26eca9548c4897c009cbd77d74bd403e60cc7b64 Mon Sep 17 00:00:00 2001 From: Rinne Date: Mon, 18 Mar 2024 03:53:27 +0800 Subject: [PATCH] fix typo and improve the error info. --- 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);