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

        Converts a sympy expression into a scalar of type ``dtype`` that
        participates in tensor value computation. Unlike ``index_expr``, the
        result dtype is respected, so this is the right op when the user
        explicitly requested the dtype (e.g. ``arange(dtype=torch.int64)``
        whose result is added to a tensor rather than used as an index).
        
=== parse google
short_description: |
  Converts a sympy expression into a scalar of type ``dtype`` that
  participates in tensor value computation. Unlike ``index_expr``, the
  result dtype is respected, so this is the right op when the user
  explicitly requested the dtype (e.g. ``arange(dtype=torch.int64)``
  whose result is added to a tensor rather than used as an index).
blank_after_short_description: False
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
Converts a sympy expression into a scalar of type ``dtype`` that
participates in tensor value computation. Unlike ``index_expr``, the
result dtype is respected, so this is the right op when the user
explicitly requested the dtype (e.g. ``arange(dtype=torch.int64)``
whose result is added to a tensor rather than used as an index).
