
    3Ki                     L    S SK Jr  S SKJrJr  \" S5      r " S S\\   5      rg)    )Callable)GenericTypeVarRc                   v    \ rS rSr% Sr\/ \4   S-  \S'   \S-  \S'   SS/rS\/ \4   SS4S jr	S\4S jr
S	rg)
Thunk   z
A simple lazy evaluation implementation that lets you delay
execution of a function.  It properly handles releasing the
function once it is forced.
Nfrreturnc                     Xl         S U l        g Nr
   r   )selfr
   s     T/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/torch/utils/_thunk.py__init__Thunk.__init__   s        c                     U R                   c  U R                  $ U R                  5       U l        S U l         U R                  $ r   r   )r   s    r   forceThunk.force   s1    66>66Mvvr   r   )__name__
__module____qualname____firstlineno____doc__r   r   __annotations__	__slots__r   r   __static_attributes__ r   r   r   r      sU     A4xKc
I(2q5/ d q r   r   N)collections.abcr   typingr   r   r   r   r    r   r   <module>r#      s&    $ # CLGAJ r   