Skip to content

Conversation

TomWildenhain-Microsoft
Copy link
Collaborator

Signed-off-by: Tom Wildenhain [email protected]


def _handle_node_having_branches(self, trans, node):
if not self._should_push_transpose(trans, node):
if not self._should_push_transpose(trans, node) or len(node.output) != 1:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This check needs to be moved before the transpose pair creation. Otherwise, pairs can be created unnecessarily which need to be removed. The removal actually causes an infinite loop in the optimizer. Technically some of the other checks need to be moved too, or the pairs destroyed on failure.

@guschmue guschmue merged commit 4a7911b into master Jul 29, 2021
@guschmue guschmue deleted the tom/fix_transpose_loop branch July 29, 2021 14:30
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