Skip to content

Conversation

tracysh
Copy link
Contributor

@tracysh tracysh commented Feb 17, 2020

Description: This fixes a customer reported issue where the NCHWc optimizer was dropping graph outputs when an edge was used as both a graph output and an input to another NCHWc node.

Motivation and Context
This fixes the problem reported in #3029 . The test model uses each intermediate tensor in the graph as input to the next NCHWc node and also includes the tensor in graph's outputs. The optimizer was not counting the graph output use in this case, so the Finalize pass did not emit ReorderOutput nodes to maintain the link to the graph outputs.

Added a test case for this type of graph. Also verified that the customer model runs as expected.

@tracysh tracysh requested a review from a team as a code owner February 17, 2020 18:59
@tracysh tracysh requested a review from skottmckay February 17, 2020 19:00
Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

:shipit:

@tracysh tracysh merged commit cc8adc8 into master Feb 17, 2020
@tracysh tracysh deleted the tracysh/fix_nchwc_graph_outputs branch February 17, 2020 22:52
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.

2 participants