Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSubgraph in nGraph #6621

Merged
merged 34 commits into from
Jul 23, 2021
Merged

Conversation

evolosen
Copy link
Contributor

Ticket #50047
Added new base class for operations with subgraphs

@evolosen evolosen requested a review from itikhono July 13, 2021 09:25
@evolosen evolosen marked this pull request as ready for review July 13, 2021 12:38
@evolosen evolosen requested review from a team, rkazants, sadolini and vgavrilo and removed request for a team July 13, 2021 12:38
@itikhono itikhono requested a review from ilyachur July 14, 2021 07:03
@evolosen evolosen requested a review from sadolini July 14, 2021 11:24
@evolosen evolosen requested a review from itikhono July 16, 2021 09:47
Copy link
Contributor

@itikhono itikhono left a comment

Choose a reason for hiding this comment

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

in general LGTM

@evolosen evolosen requested a review from ilyachur July 19, 2021 06:11
Copy link
Contributor

@ilyachur ilyachur left a comment

Choose a reason for hiding this comment

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

I don't see any new tests, can we add new tests to cover subgraph base?

/// SubGraphOp.
///
class NGRAPH_API SliceInputDescription : public InputDescription
virtual std::shared_ptr<Function> get_function() { return m_bodies[0]; };
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
virtual std::shared_ptr<Function> get_function() { return m_bodies[0]; };
virtual const std::shared_ptr<Function>& get_function() { return m_bodies[0]; };

///
class NGRAPH_API SliceInputDescription : public InputDescription
virtual std::shared_ptr<Function> get_function() { return m_bodies[0]; };
virtual std::shared_ptr<const Function> get_function() const
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
virtual std::shared_ptr<const Function> get_function() const
virtual const std::shared_ptr<const Function>& get_function() const

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to have both methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its old code, i dont fix it, in ti and loop sometimes are used theese methods,

Copy link
Contributor

@itikhono itikhono Jul 20, 2021

Choose a reason for hiding this comment

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

It happened historically :) I don't remember exactly the whole story. We had get_function() without const qualifier in TensorIterator and SubGraph classes (it was an error), but Gleb G. wanted to use this function in const context, so he added a new function with const qualifier.
I guess we can remain only
virtual const std::shared_ptr<const Function>& get_function() const
But I'm not sure it's backward compatible change or not, @ilyachur what do you think should leave both functions or it's better to remain only one?

Copy link
Contributor

Choose a reason for hiding this comment

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

If we don't modify the function I think we can have only one function. In any way, we can decide it in the separate PR.

@evolosen evolosen requested a review from ilyachur July 20, 2021 10:54
@ilyachur
Copy link
Contributor

Please fix CI

@ilyachur ilyachur merged commit f328eec into openvinotoolkit:master Jul 23, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
* Add multisubgraph

* Fix format

* Fix clang format

* Fix TensorIterator RTT

* Fix subgraph

* Fix codestyle

* Fix comments

* Fix comments

* Fix coments

* Fix comments

* delete get function

* fix methods

* fix ci

* Fix ci

* fix bugs

* Fix cmake

* Fix ci

* delete virtual function

* delete virtual function

* fix ci

* Fix ci
andrei-cv pushed a commit to andrei-cv/openvino that referenced this pull request Aug 30, 2021
* Add multisubgraph

* Fix format

* Fix clang format

* Fix TensorIterator RTT

* Fix subgraph

* Fix codestyle

* Fix comments

* Fix comments

* Fix coments

* Fix comments

* delete get function

* fix methods

* fix ci

* Fix ci

* fix bugs

* Fix cmake

* Fix ci

* delete virtual function

* delete virtual function

* fix ci

* Fix ci
akuporos pushed a commit to akuporos/openvino that referenced this pull request Sep 29, 2021
* Add multisubgraph

* Fix format

* Fix clang format

* Fix TensorIterator RTT

* Fix subgraph

* Fix codestyle

* Fix comments

* Fix comments

* Fix coments

* Fix comments

* delete get function

* fix methods

* fix ci

* Fix ci

* fix bugs

* Fix cmake

* Fix ci

* delete virtual function

* delete virtual function

* fix ci

* Fix ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants