Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

refactor topological_sort to use Node.get_users() #2536

Merged
merged 6 commits into from
Mar 9, 2019

Conversation

wenzhe-nrv
Copy link
Contributor

replacing deprecated functions: Node.get_outputs()
get_users() wraps get_output_size and get_output_inputs and returns a NodeVector

src/ngraph/graph_util.hpp Outdated Show resolved Hide resolved
@wenzhe-nrv
Copy link
Contributor Author

@rkimballn1 I also found and fixed a few places in graph_util.cpp that used auto u: node->get_users().
Changed to for (const auto& u : node->get_users())

Copy link
Contributor

@louisfeng louisfeng left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@wenzhe-nrv
Copy link
Contributor Author

wenzhe-nrv commented Mar 6, 2019

@rkimballn1 Bob, please review again.

@wenzhe-nrv wenzhe-nrv added the Fully Reviewed PR is approved by all reviewers. label Mar 8, 2019
@wenzhe-nrv
Copy link
Contributor Author

This PR is fully reviewed. Re-requested @louisfeng review by mistake.

@diyessi diyessi removed the request for review from louisfeng March 8, 2019 21:33
@diyessi diyessi merged commit 97ca4a6 into master Mar 9, 2019
@diyessi diyessi deleted the wenzhe/topo_sort_refactor branch March 9, 2019 05:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fully Reviewed PR is approved by all reviewers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants