o
    ,h                     @   s^   d dl Z e jddZed e jedde jeddde jd	ed
e jfddZdS )    NexportFRAGMENTzLaccess_subclass_inner_tensor(Tensor src_subclass_tensor, str attr) -> Tensoraccess_subclass_inner_tensorAutogradPythonsrc_subclass_tensorattrreturnc                 C   sP   ddl m} || sJ t| |d }|d u st|tjs&td| d|  |S )Nr   )is_traceable_wrapper_subclassz
Attribute z% is not a tensor or doesn't exist in )torch.utils._python_dispatchr
   getattr
isinstancetorchTensorRuntimeError)r   r   r
   val r   R/var/www/html/scripts/venv/lib/python3.10/site-packages/torch/export/custom_ops.py_access_subclass_inner_tensor   s   r   )	r   libraryLibrarylibdefineimplr   strr   r   r   r   r   <module>   s    