# torch 2.15.0 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Return a concrete integer hint for an expression using heuristics.

    This function should be used for non-guarding based optimizations.
    It will hint unbacked symbols using user provided optimization hints.
    If not provided, fallback will be used along with some heuristics
    that try to maximize consistency with the shape environment.

    Args:
        shape_env: The ShapeEnv instance.
        expr: A sympy expression or integer to evaluate.
        precomputed_replacements: Precomputed replacements for PRECOMPUTED_SIZE symbols.
        fallback: Fallback value for unbacked symbols. If None, reads from config.

    Returns:
        A concrete integer hint for the expression.
    
=== parse google
short_description: 'Return a concrete integer hint for an expression using heuristics.'
long_description: |
  This function should be used for non-guarding based optimizations.
  It will hint unbacked symbols using user provided optimization hints.
  If not provided, fallback will be used along with some heuristics
  that try to maximize consistency with the shape environment.
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'The ShapeEnv instance.'
  kind: param
  key: 'param'
  arg_name: 'shape_env'
  is_optional: False
- DocstringParam
  description: 'A sympy expression or integer to evaluate.'
  kind: param
  key: 'param'
  arg_name: 'expr'
  is_optional: False
- DocstringParam
  description: 'Precomputed replacements for PRECOMPUTED_SIZE symbols.'
  kind: param
  key: 'param'
  arg_name: 'precomputed_replacements'
  is_optional: False
- DocstringParam
  description: 'Fallback value for unbacked symbols. If None, reads from config.'
  kind: param
  key: 'param'
  arg_name: 'fallback'
  is_optional: False
- DocstringReturns
  description: 'A concrete integer hint for the expression.'
  kind: returns
  key: 'returns'
  is_generator: False
=== detect
google
=== compose google
Return a concrete integer hint for an expression using heuristics.

This function should be used for non-guarding based optimizations.
It will hint unbacked symbols using user provided optimization hints.
If not provided, fallback will be used along with some heuristics
that try to maximize consistency with the shape environment.

Args:
    shape_env: The ShapeEnv instance.
    expr: A sympy expression or integer to evaluate.
    precomputed_replacements: Precomputed replacements for PRECOMPUTED_SIZE symbols.
    fallback: Fallback value for unbacked symbols. If None, reads from config.

Returns:
    A concrete integer hint for the expression.
