Skip to content

Introduce get|set_layout helpers#9401

Merged
ilyachur merged 8 commits intoopenvinotoolkit:masterfrom
ilyachur:introduce_get_layout
Dec 24, 2021
Merged

Introduce get|set_layout helpers#9401
ilyachur merged 8 commits intoopenvinotoolkit:masterfrom
ilyachur:introduce_get_layout

Conversation

@ilyachur
Copy link
Copy Markdown
Contributor

Details:

  • Introduce ov::layout::get|set_layout() helpers

@ilyachur ilyachur added the category: inference OpenVINO Runtime library - Inference label Dec 23, 2021
@ilyachur ilyachur added this to the 2022.1 milestone Dec 23, 2021
@openvino-pushbot openvino-pushbot added the category: Core OpenVINO Core (aka ngraph) label Dec 23, 2021
Comment thread src/bindings/python/src/pyopenvino/graph/layout_helpers.cpp
Comment thread src/bindings/python/src/pyopenvino/graph/layout_helpers.cpp Outdated
Comment thread src/core/src/layout.cpp
Comment thread src/core/src/layout.cpp
Comment thread src/core/tests/preprocess.cpp Outdated
Comment thread src/core/tests/preprocess.cpp Outdated
Comment thread src/bindings/python/tests/test_ngraph/test_basic.py Outdated
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>
@ilya-lavrenov ilya-lavrenov self-assigned this Dec 23, 2021
@ilyachur ilyachur requested a review from a team December 24, 2021 05:24
@ilyachur ilyachur merged commit d1fd0d2 into openvinotoolkit:master Dec 24, 2021
@ilyachur ilyachur deleted the introduce_get_layout branch December 24, 2021 11:24
/// \brief Sets Layout of port
///
/// \throws ov::Exception if port is not connected with Result or Parameter
OPENVINO_API void set_layout(ov::Output<ov::Node> output, const ov::Layout& layout);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if I set_layout to the node before the Result? I suppose it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: Core OpenVINO Core (aka ngraph) category: inference OpenVINO Runtime library - Inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants