Skip to content

Commit 2e20693

Browse files
committed
fix(converter): fix split op fused case
1 parent 84a3287 commit 2e20693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/paddlejs-converter/fuseOps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def opExistSingleNode(opName):
6060
if op['type'] == fuse:
6161
prevOp = ops[index - 1]
6262

63-
if opExistSingleNode(prevOp['outputs']['Out'][0]):
63+
if opExistSingleNode(prevOp['outputs']['Out'][0]) and len(prevOp['outputs']['Out']) == 1 :
6464
prevOp['attrs']['fuse_opt'] = {}
6565
if 'fuse_opt' in op['attrs']:
6666
prevOp['attrs']['fuse_opt'] = op['attrs']['fuse_opt']

0 commit comments

Comments
 (0)