o �J�h��@s>ddlZddlZGdd�dej�ZGdd�dej�Ze�ZdS)�Ncs$eZdZ�fdd�Zdd�Z�ZS)�_ClassNamespacecst��d|�||_dS�Nz torch.classes)�super�__init__�name)�selfr�� __class__��LC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\torch\_classes.pyrs z_ClassNamespace.__init__cCs4tj�|j|�}|durtd|j�d|�d���|S)NzClass �.z not registered!)�torch�_C� _get_custom_class_python_wrapperr� RuntimeError)r�attr�proxyr r r � __getattr__ sz_ClassNamespace.__getattr__)�__name__� __module__� __qualname__rr� __classcell__r r rr rs rcs>eZdZdZd �fdd� Zdd�Zedd ��Zd d �Z�Z S) �_Classesz _classes.py�returnNcst��d�dSr)rr�rrr r rsz_Classes.__init__cCst|�}t|||�|S�N)r�setattr)rr� namespacer r r rs z_Classes.__getattr__cCstjjSr)r �ops�loaded_librariesrr r r rsz_Classes.loaded_librariescCstj�|�dS)a  Loads a shared library from the given path into the current process. The library being loaded may run global initialization code to register custom classes with the PyTorch JIT runtime. This allows dynamically loading custom classes. For this, you should compile your class and the static registration code into a shared library object, and then call ``torch.classes.load_library('path/to/libcustom.so')`` to load the shared object. After the library is loaded, it is added to the ``torch.classes.loaded_libraries`` attribute, a set that may be inspected for the paths of all libraries loaded using this function. Args: path (str): A path to a shared library to load. N)r r� load_library)r�pathr r r r "sz_Classes.load_library)rN) rrr�__file__rr�propertyrr rr r rr rs r)�types�torch._Cr � ModuleTyperr�classesr r r r �<module>s  %
Memory