Skip to content

Commit

Permalink
Revert not required changes
Browse files Browse the repository at this point in the history
Signed-off-by: Raasz, Pawel <[email protected]>
  • Loading branch information
praasz committed Dec 13, 2024
1 parent e715003 commit a8ecea8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 2 additions & 0 deletions src/common/transformations/tests/utils/convert_precision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,8 @@ TEST(TransformationTests, ConvertPrecisionExplicitConvertsMultiParam) {
ASSERT_TRUE(result.valid) << result.message;

const auto& results = model->get_results();
ASSERT_EQ("add.0", results[0]->get_input_node_ptr(0)->get_friendly_name());
ASSERT_EQ("mul.0", results[1]->get_input_node_ptr(0)->get_friendly_name());
ASSERT_EQ("sine", results[2]->get_input_node_ptr(0)->get_friendly_name());
}

Expand Down
9 changes: 1 addition & 8 deletions src/core/include/openvino/core/descriptor/output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class OPENVINO_API Output {
std::shared_ptr<Tensor> get_tensor_ptr() const {
return m_tensor;
}

virtual void set_tensor_ptr(const std::shared_ptr<Tensor>& tensor) {
void set_tensor_ptr(const std::shared_ptr<Tensor>& tensor) {
m_tensor = tensor;
}
void add_input(Input* input);
Expand Down Expand Up @@ -71,14 +70,8 @@ class OPENVINO_API Output {
Output(const Output&) = default;
Output(Output&&) = default;
Output& operator=(const Output&) = default;
virtual ~Output() = default;

protected:
friend void ov::Output<Node>::set_names(const std::unordered_set<std::string>& names);
friend void ov::Output<Node>::add_names(const std::unordered_set<std::string>& names);
virtual void set_names(const std::unordered_set<std::string>& names);
virtual void add_names(const std::unordered_set<std::string>& names);

Node* m_node;
size_t m_index;
std::shared_ptr<Tensor> m_tensor;
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/descriptor/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void ov::descriptor::Input::replace_output(Output& new_output) {
}

void ov::descriptor::Input::replace_output(const std::shared_ptr<ov::Node>& node, size_t i) {
replace_output(node->get_output_descriptor(i));
replace_output(node->m_outputs.at(i));
}

void ov::descriptor::Input::remove_output() {
Expand Down
8 changes: 0 additions & 8 deletions src/core/src/descriptor/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,3 @@ const ov::PartialShape& ov::descriptor::Output::get_partial_shape() const {
const ov::element::Type& ov::descriptor::Output::get_element_type() const {
return m_tensor->get_element_type();
}

void ov::descriptor::Output::set_names(const std::unordered_set<std::string>& names) {
get_tensor().set_names(names);
}

void ov::descriptor::Output::add_names(const std::unordered_set<std::string>& names) {
get_tensor().add_names(names);
}

0 comments on commit a8ecea8

Please sign in to comment.