
    Χg                     R    d dl Z dgZe j        dk    r
d dlmZ d Znd dlZd Zd ZdS )    Nregister_after_forkwin32c                 F      fd}t          j        t          |           d S )Nc                                   d S )N )argfuncs    Y/var/www/html/ai-engine/env/lib/python3.11/site-packages/torch/multiprocessing/_atfork.pywrapperz_register.<locals>.wrapper   s    DFFFFF    )_utilr   	_register)r	   r   s   ` r
   r   r   
   s7    	 	 	 	 	 	!)W55555r   c                 0    t          j        |            d S )N)after_in_child)osregister_at_forkr	   s    r
   r   r      s    
4000000r   c                 $    t          |            dS )ah  Register a callable to be executed in the child process after a fork.

    Note:
        In python < 3.7 this will only work with processes created using the
        ``multiprocessing`` module. In python >= 3.7 it also works with
        ``os.fork()``.

    Args:
        func (function): Function taking no arguments to be called in the child after fork

    N)r   r   s    r
   r   r      s     dOOOOOr   )	sys__all__platformmultiprocessing.utilutilr   r   r   r   r   r   r
   <module>r      s~    



 !
!<7((((((6 6 6 6 III1 1 1    r   