Ë
    M²j  ã                   ó0  — d dl Z d dlZej                  j                  dd«      Zej                  d«       ej                  j                  edd«      ej                  j                  edd«      dej                  d	ed
ej                  fd„«       «       Z	d„ Z
y)é    NÚexportÚFRAGMENTzLaccess_subclass_inner_tensor(Tensor src_subclass_tensor, str attr) -> TensorÚaccess_subclass_inner_tensorÚAutogradÚPythonÚsrc_subclass_tensorÚattrÚreturnc                 óÄ   — ddl m}  || «      st        dt        | «      › �«      ‚t	        | |d «      }|�t        |t        j                  «      st        d|› d| › �«      ‚|S )Nr   )Úis_traceable_wrapper_subclasszIExpected src_subclass_tensor to be a traceable wrapper subclass, but got z
Attribute z% is not a tensor or doesn't exist in )	Útorch.utils._python_dispatchr   ÚAssertionErrorÚtypeÚgetattrÚ
isinstanceÚtorchÚTensorÚRuntimeError)r   r	   r   Úvals       úV/var/www/html/ia-enhanced/venv/lib/python3.12/site-packages/torch/export/custom_ops.pyÚ_access_subclass_inner_tensorr      s~   € õ Ká(Ð)<Ô=ÜðÜÐ/Ó0Ð1ð3ó
ð 	
ô Ð% t¨TÓ
2€CØ
€{œ* S¬%¯,©,Ô7ÜØ˜˜ÐCÐDWÐCXÐYó
ð 	
ð €Jó    c                 óÈ   — | j                  dd«      \  }}t        j                  |«      }t        ||«      }t	        |d«      st        d| › d�«      ‚ |j                  |i |¤ŽS )a]  
    Import a custom autograd function by string name and call it. This is pretty bad
    because:
    1) There is no schema

    Ideally we should automatically wrap custom autograd functions with a custom op, but
    that is too much work because we need to schematize custom autograd functions. For now,
    we just hackily put it in the IR.
    ú.é   ÚapplyzExpected function class z to have 'apply' method)ÚrsplitÚ	importlibÚimport_moduler   Úhasattrr   r   )Úfunction_cls_nameÚargsÚkwargsÚmodule_nameÚ
class_nameÚmoduleÚfunction_clss          r   Ú._call_custom_autograd_function_in_pre_dispatchr(   $   sy   € ð 0×6Ñ6°s¸AÓ>Ñ€K�ô ×$Ñ$ [Ó1€FÜ˜6 :Ó.€LÜ�< Ô)ÜØ&Ð'8Ð&9Ð9PÐQó
ð 	
ð ˆ<×Ñ˜tÐ. vÑ.Ð.r   )r   r   ÚlibraryÚLibraryÚlibÚdefineÚimplr   Ústrr   r(   © r   r   ú<module>r0      sŸ   ðã ã ð ‡m�m×Ñ˜H jÓ1€à ‡
�
ØRôð
 ‡�×Ñ�CÐ7¸ÓDð ‡�×Ñ�CÐ7¸ÓBðØŸ™ðØ-0ðà
‡\�\òó Có Eðó$/r   