Skip to content

Commit fb0555c

Browse files
minor fix
1 parent 1d2ac89 commit fb0555c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnxscript/rewriter/pattern.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ def try_rewrite(
13871387
check_match_result.reason,
13881388
check_match_result._failure_nodes_and_values,
13891389
)
1390-
match.fail(check_match_result.reason)
1390+
else:
1391+
match.fail(check_match_result.reason)
13911392
if tracer:
13921393
tracer.log(
13931394
self, graph_or_function, node, match, MatchStatus.CONDITION_FAILED

0 commit comments

Comments
 (0)