Skip to content

Commit 0433e04

Browse files
authored
Increase DEFAULT_CONSTANT_FOLD_INPUT_SIZE_LIMIT (#2527)
I have seen graphs like `Add(bias, 1)` in gemma3 where bias is an initializer. (Why?) This PR increases the default input limit so these bias initializers can be folded
1 parent 1a7f3bd commit 0433e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxscript/optimizer/_constant_folding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import onnxscript.utils.utils as utils
2020
from onnxscript.ir import _tape
2121

22-
DEFAULT_CONSTANT_FOLD_INPUT_SIZE_LIMIT = 512
22+
DEFAULT_CONSTANT_FOLD_INPUT_SIZE_LIMIT = 8192
2323

2424
DEFAULT_CONSTANT_FOLD_OUTPUT_SIZE_LIMIT = 512 * 512
2525

0 commit comments

Comments
 (0)