KEMBAR78
Count regular edges while picking metaedge. by chihuahua · Pull Request #1082 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@chihuahua
Copy link
Member

@chihuahua chihuahua commented Mar 28, 2018

The logic for patching inputs to function nodes performs a scan across
metaedges (edges that encapsulate potentially numerous base edges) in
order to determine the correct metaedge to patch. Previously, this logic
had not taken into consideration how a metaedge could represent several
regular edges. This was problematic since the index pertained to the
collective number of regular edges (not metaedges).

This had caused an internal user's graph to fail to render. The graph
contained an edge into a series node within a function. The series node
caused several regular edges to be collapsed into one metaedge.

This change has been tested with that graph as well as other graphs that
make use of TensorFlow functions. The graph WAI.

This logic will be tested within internal integration tests for the graph.

The logic for patching inputs to function nodes performs a scan across
metaedges (edges that encapsulate potentially numerous base edges) in
order to determine the correct metaedge to patch. Previously, this logic
had not taken into consideration how a metaedge could represent several
regular edges. This was problematic since the index pertained to the
collective number of regular edges (not metaedges).

This had caused an internal user's graph to fail to render. The graph
contained an edge into a series node within a function. The series node
caused several regular edges to be collapsed into one metaedge.

This change has been tested with that graph as well as other graphs that
make use of TensorFlow functions. The graph WAI.
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

let originalMetaEdge: Metaedge;
let regularEdgeCount = 0;
for (let i = 0; i < originalMetaEdges.regular.length; i++) {
const metaEdge = originalMetaEdges.regular[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional - this could be a forEach, right? Since you aren't using the index variable except to index into the original list.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! Thanks! We now use _.each.

@nfelt
Copy link
Contributor

nfelt commented Mar 29, 2018

LGTM, shall we merge? We'll want to do a sync too. I think the Beholder stuff was still an issue; I can take a look at this if nobody else is working on it. @jart cc

@chihuahua chihuahua merged commit 6f931e5 into tensorflow:master Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants