Skip to content

Commit e69fdf2

Browse files
committed
docs
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
1 parent dddd923 commit e69fdf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

onnxscript/optimizer/_constant_folding.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,10 @@ def merge_dims(dim1, dim2):
824824
class FoldConstantsPass(ir.passes.InPlacePass):
825825
"""A pass that folds constant expressions in the model.
826826
827+
.. NOTE::
828+
``ConstantOfShape`` will not be replaced unless explicitly specified in
829+
``always_fold_ops``.
830+
827831
Attributes:
828832
shape_inference: Whether to perform shape inference.
829833
input_size_limit: Maximum size of input tensors to fold.

0 commit comments

Comments
 (0)