
    Χgq                     \    d dl mZmZmZmZ  ed          Z G d dee                   ZdS )    )CallableGenericOptionalTypeVarRc                       e Zd ZU dZeeg ef                  ed<   ee         ed<   ddgZdeg ef         fdZ	defdZ
dS )Thunkz
    A simple lazy evaluation implementation that lets you delay
    execution of a function.  It properly handles releasing the
    function once it is forced.
    frc                 "    || _         d | _        d S Nr
   r   )selfr
   s     N/var/www/html/ai-engine/env/lib/python3.11/site-packages/torch/utils/_thunk.py__init__zThunk.__init__   s        returnc                 l    | j         | j        S |                                  | _        d | _         | j        S r   r   )r   s    r   forcezThunk.force   s-    6>6Mvr   N)__name__
__module____qualname____doc__r   r   r   __annotations__	__slots__r   r    r   r   r	   r	      s           Q    {NNNc
I(2q5/    q      r   r	   N)typingr   r   r   r   r   r	   r   r   r   <module>r      sp    7 7 7 7 7 7 7 7 7 7 7 7 GCLL    GAJ     r   