File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -237,14 +237,14 @@ def _initialize_handlers(self):
237
237
}
238
238
239
239
def _handle_node_having_branches (self , trans , node ):
240
- if not self ._should_push_transpose (trans , node ):
240
+ if not self ._should_push_transpose (trans , node ) or len ( node . output ) != 1 :
241
241
return False
242
242
# create transpose pairs if some input are not.
243
243
if not self ._create_transpose_pairs_before_node (trans , node ):
244
244
return False
245
245
# make sure node's all input transpose all have only 1 consumer node,
246
246
# otherwise, it would impact their other output nodes
247
- if self ._nodes_has_single_consumer_node (node .inputs ) and len ( node . output ) == 1 :
247
+ if self ._nodes_has_single_consumer_node (node .inputs ):
248
248
self ._create_transpose_pairs_after_node (trans , node )
249
249
input_transposes = set (node .inputs )
250
250
for n in input_transposes :
You can’t perform that action at this time.
0 commit comments