Skip to content

Commit b99fe88

Browse files
committed
fix
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent 9922bae commit b99fe88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxscript/optimizer/_constant_folding_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def test_node_is_folded_if_specified_as_should_fold(self):
599599

600600
# But ConstantOfShape is folded when specified in should_fold
601601
optimized = self._fold(
602-
model, should_fold=lambda node: node.op_type == "ConstantOfShape"
602+
model, should_fold=lambda node: node.op_type == "ConstantOfShape" or None
603603
)
604604
ops = [node.op_type for node in optimized.graph]
605605
self.assertEqual(ops, ["Constant"])

0 commit comments

Comments
 (0)