# transformers 5.24.1 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Skip stringifying ShapeEnv guards on every ``ExportedProgram`` construction.

    ``ExportedProgram.__init__`` unconditionally pretty-prints every ShapeEnv guard
    into ``_guards_code``. ExecuTorch lowering constructs hundreds of intermediate
    ``ExportedProgram``s (every ``_transform`` / decomposition / partition), each
    re-printing the full guard set. For dynamic-shape guards with deeply nested
    ``FloorDiv``/``Add`` expressions (Swin/Hiera window partitioning, BigBird
    block-sparse indexing) the printer walks the *unshared* expression tree —
    minutes of sympy printing per export, and on Mask2Former/Sam2 a recursion deep
    enough to overflow the C stack (segfault). The strings are only consumed when
    ``ExportedProgram.module()`` builds a guards fn, which torch itself force-disables
    for ExecuTorch callers (``torch.export._unlift._ok_to_generate_guards_fn``), so
    they are pure waste during lowering.
    
=== parse google
short_description: 'Skip stringifying ShapeEnv guards on every ``ExportedProgram`` construction.'
long_description: |
  ``ExportedProgram.__init__`` unconditionally pretty-prints every ShapeEnv guard
  into ``_guards_code``. ExecuTorch lowering constructs hundreds of intermediate
  ``ExportedProgram``s (every ``_transform`` / decomposition / partition), each
  re-printing the full guard set. For dynamic-shape guards with deeply nested
  ``FloorDiv``/``Add`` expressions (Swin/Hiera window partitioning, BigBird
  block-sparse indexing) the printer walks the *unshared* expression tree —
  minutes of sympy printing per export, and on Mask2Former/Sam2 a recursion deep
  enough to overflow the C stack (segfault). The strings are only consumed when
  ``ExportedProgram.module()`` builds a guards fn, which torch itself force-disables
  for ExecuTorch callers (``torch.export._unlift._ok_to_generate_guards_fn``), so
  they are pure waste during lowering.
blank_after_short_description: True
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
Skip stringifying ShapeEnv guards on every ``ExportedProgram`` construction.

``ExportedProgram.__init__`` unconditionally pretty-prints every ShapeEnv guard
into ``_guards_code``. ExecuTorch lowering constructs hundreds of intermediate
``ExportedProgram``s (every ``_transform`` / decomposition / partition), each
re-printing the full guard set. For dynamic-shape guards with deeply nested
``FloorDiv``/``Add`` expressions (Swin/Hiera window partitioning, BigBird
block-sparse indexing) the printer walks the *unshared* expression tree —
minutes of sympy printing per export, and on Mask2Former/Sam2 a recursion deep
enough to overflow the C stack (segfault). The strings are only consumed when
``ExportedProgram.module()`` builds a guards fn, which torch itself force-disables
for ExecuTorch callers (``torch.export._unlift._ok_to_generate_guards_fn``), so
they are pure waste during lowering.
