Skip to content

Commit

Permalink
Update comments and change tensor name with space
Browse files Browse the repository at this point in the history
Signed-off-by: Raasz, Pawel <[email protected]>
  • Loading branch information
praasz committed Jan 31, 2025
1 parent cab8510 commit 29b4faf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/frontends/ir/src/ir_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ using namespace ov::util;

namespace {
/**
* @brief The function deserialize tensor names.
* @brief Function deserializing tensor names.
*
* The each tensor names is separated be comma. The escaped commas in tensor names are replaced by actual comma.
* Each tensor names are separated by comma. Escaped commas in tensor names are replaced by actual comma.
*
* @param tensor_names A string view to serialized tensor names.
* @return A set of unique tensor names.
Expand Down
4 changes: 2 additions & 2 deletions src/frontends/ir/tests/frontend_test_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ TEST_F(IRFrontendTests, model_output_name_with_comma) {
</port>
</output>
</layer>
<layer name="output" type="Result" id="2" version="opset1" output_names="relu\,t,custom\,name">
<layer name="output" type="Result" id="2" version="opset1" output_names="relu\,t,custom\, name">
<input>
<port id="0" precision="FP32">
<dim>1</dim>
Expand All @@ -1460,7 +1460,7 @@ TEST_F(IRFrontendTests, model_output_name_with_comma) {
ASSERT_TRUE(!!model);

{
const auto output_tensor = model->output("custom,name");
const auto output_tensor = model->output("custom, name");
EXPECT_EQ(output_tensor.get_names().size(), 2);
EXPECT_EQ(output_tensor.get_node()->get_friendly_name(), "output");
}
Expand Down

0 comments on commit 29b4faf

Please sign in to comment.