Skip to content

Commit

Permalink
fix rc
Browse files Browse the repository at this point in the history
Signed-off-by: fishbell <[email protected]>
  • Loading branch information
songbell committed Dec 25, 2023
1 parent bc121c0 commit 49b7d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/include/openvino/core/layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ class OPENVINO_API LayoutAttribute : public ov::RuntimeAttribute {
std::string to_string() const override;

Layout value;

private:
std::shared_ptr<std::mutex> m_mutex = std::make_shared<std::mutex>();
};

} // namespace ov
1 change: 1 addition & 0 deletions src/core/src/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ void AttributeAdapter<ov::Layout>::set(const std::string& value) {
}

bool LayoutAttribute::visit_attributes(AttributeVisitor& visitor) {
std::lock_guard<std::mutex> lock{*m_mutex.get()};
std::string layout_str = value.to_string();
visitor.on_attribute("layout", layout_str);
value = Layout(layout_str);
Expand Down

0 comments on commit 49b7d7e

Please sign in to comment.