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

        In this function, we schedule the pre hooks as soon as possible. This
        does not match eager behavior (schedule pre hook right before its
        registered node), but it can make acc grad be scheduled properly when
        the pre hooks are registered to them. After reordering acc grad node, we
        will reorder the pre hooks again to mimic eager behavior.
        
=== parse google
short_description: |
  In this function, we schedule the pre hooks as soon as possible. This
  does not match eager behavior (schedule pre hook right before its
  registered node), but it can make acc grad be scheduled properly when
  the pre hooks are registered to them. After reordering acc grad node, we
  will reorder the pre hooks again to mimic eager behavior.
blank_after_short_description: False
blank_after_long_description: False
style: google
=== detect
rest
=== compose google
In this function, we schedule the pre hooks as soon as possible. This
does not match eager behavior (schedule pre hook right before its
registered node), but it can make acc grad be scheduled properly when
the pre hooks are registered to them. After reordering acc grad node, we
will reorder the pre hooks again to mimic eager behavior.
