
    [Th                     v    S SK r S SKr " S S\ R                  5      r " S S\ R                  5      r\" 5       rg)    Nc                   .   ^  \ rS rSrU 4S jrS rSrU =r$ )_ClassNamespace   c                 6   > [         TU ]  SU-   5        Xl        g Nztorch.classes)super__init__name)selfr
   	__class__s     F/var/www/auris/envauris/lib/python3.13/site-packages/torch/_classes.pyr	   _ClassNamespace.__init__   s    4/0	    c                     [         R                  R                  U R                  U5      nUc  [	        SU R                   SU S35      eU$ )NzClass .z not registered!)torch_C _get_custom_class_python_wrapperr
   RuntimeError)r   attrproxys      r   __getattr___ClassNamespace.__getattr__   sE    99$))TJ=		{!D69IJKKr   )r
   )__name__
__module____qualname____firstlineno__r	   r   __static_attributes____classcell__r   s   @r   r   r      s     r   r   c                   L   ^  \ rS rSrSrSU 4S jjrS r\S 5       rS r	Sr
U =r$ )	_Classes   z_classes.pyc                 $   > [         TU ]  S5        g r   )r   r	   )r   r   s    r   r	   _Classes.__init__   s    )r   c                 4    [        U5      n[        XU5        U$ N)r   setattr)r   r
   	namespaces      r   r   _Classes.__getattr__   s    #D)	I&r   c                 6    [         R                  R                  $ r'   )r   opsloaded_libraries)r   s    r   r-   _Classes.loaded_libraries   s    yy)))r   c                 B    [         R                  R                  U5        g)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   paths     r   r0   _Classes.load_library"   s    $ 			t$r    )returnN)r   r   r   r   __file__r	   r   propertyr-   r0   r   r   r    s   @r   r"   r"      s0    H*
 * *% %r   r"   )typestorch._Cr   
ModuleTyper   r"   classesr3   r   r   <module>r;      s9     	e&& 	!%u !%J *r   