Skip to content

Commit

Permalink
temp: disable custom info to check tf test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
t-jankowski committed Sep 30, 2024
1 parent 030da61 commit 86ce5e8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/core/src/pass/serialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,9 +1047,9 @@ void ngfunction_2_ir(pugi::xml_node& netXml,
}
}

for (const auto& item : attributes)
if (!item.second.is<ov::RuntimeAttribute>())
has_attrs |= append_custom_info(rt_node, item.first, item.second);
// for (const auto& item : attributes)
// if (!item.second.is<ov::RuntimeAttribute>())
// has_attrs |= append_custom_info(rt_node, item.first, item.second);

if (!has_attrs)
node.remove_child(rt_node);
Expand Down
6 changes: 4 additions & 2 deletions src/core/tests/pass/serialization/rt_info_serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ TEST(OvSerializationTests, SerializeRawMeta) {
}
}

#include <iostream>
#include <sstream>
#if 0
# include <iostream>
# include <sstream>

using namespace ov;
using ov::op::v0::Abs;
Expand Down Expand Up @@ -480,3 +481,4 @@ TEST(SerializeCustomRTI, AnyMap_RENAMEME) {
EXPECT_NO_THROW((ov::pass::Serialize{model_ss, weights_ss}.run_on_model(model)));
EXPECT_EQ(ir.compare(model_ss.str()), 0);
}
#endif
18 changes: 9 additions & 9 deletions src/frontends/ir/src/ir_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,15 +995,15 @@ std::shared_ptr<ov::Node> ov::XmlDeserializer::create_node(const std::vector<ov:
}

// Predefined attributes take precedence over custom rt info
for (const auto& item : rt_attrs) {
if (std::strcmp(item.name(), "custom") == 0) {
std::string custom_name, custom_value;
if (getStrAttribute(item, "name", custom_name) && getStrAttribute(item, "value", custom_value)) {
// Duplicates are not added and are ignored
rt_info.emplace(custom_name, custom_value);
}
}
}
// for (const auto& item : rt_attrs) {
// if (std::strcmp(item.name(), "custom") == 0) {
// std::string custom_name, custom_value;
// if (getStrAttribute(item, "name", custom_name) && getStrAttribute(item, "value", custom_value)) {
// // Duplicates are not added and are ignored
// rt_info.emplace(custom_name, custom_value);
// }
// }
// }
};

// read runtime info only for IR v11+
Expand Down
8 changes: 5 additions & 3 deletions src/frontends/ir/tests/rt_info_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//

#include <gtest/gtest.h>
#if 0
# include <gtest/gtest.h>

#include "common_test_utils/test_assertions.hpp"
#include "openvino/runtime/core.hpp"
# include "common_test_utils/test_assertions.hpp"
# include "openvino/runtime/core.hpp"

TEST(RTInfoCustom, basic_RENAMEME) {
std::string ir = R"V0G0N(
Expand Down Expand Up @@ -99,3 +100,4 @@ TEST(RTInfoCustom, basic_RENAMEME) {
OV_ASSERT_NO_THROW(value = result_rti.at("primitives_priority_0").as<std::string>());
EXPECT_EQ(value.compare("the_prior"), 0);
}
#endif

0 comments on commit 86ce5e8

Please sign in to comment.