Skip to content

Conversation

@aaroey
Copy link
Member

@aaroey aaroey commented Jul 17, 2019

TF disallows modifying the edgeset when iterating it, see:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/graph/edgeset.h#L117

Copy link
Contributor

@shresthamalik shresthamalik left a comment

Choose a reason for hiding this comment

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

LGTM. There are other places we do something similar. We can take an action items to correct those.

@sayantan-nervana
Copy link
Contributor

sayantan-nervana commented Jul 17, 2019

LGTM. There are other places we do something similar. We can take an action items to correct those.

@shresthamalik: These need change:

for (auto edge : node->in_edges()) {

for (auto edge : node->in_edges()) {

These ones are done right:

for (auto edge : node->out_edges()) {

for (auto edge : node->out_edges()) {

for (auto edge : node->out_edges()) {

for (auto edge : node->out_edges()) {

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.

4 participants