a
    „»aZ  ć                   @   s:   d dl Z d dlZd dlZe ” ae jdd Zdd ZdS )é    Nc                 k   s~   t | ts t| sJ d| g} t t ”}| D ]<}t|sDJ d|j}||vr\i tj|< tj|  	|” q0d V  |t_d S )NzBarg_scope is only supporting single or a list of helper functions.zAarg_scope is only supporting a list of callable helper functions.)
Ś
isinstanceŚlistŚcallableŚcopyŚdeepcopyŚget_current_scopeŚ__name__Ś_threadlocal_scopeŚcurrent_scopeŚupdate)Zsingle_helper_or_listŚkwargsZ	old_scopeŚhelperZ
helper_key© r   śY/home/yuhw/wc/pochoir/venv/lib/python3.9/site-packages/caffe2/python/helpers/arg_scope.pyŚ	arg_scope   s     

’
’
r   c                   C   s   t tdsi t_tjS )Nr
   )Śhasattrr	   r
   r   r   r   r   r      s    
r   )Ś
contextlibr   Ś	threadingŚlocalr	   Ścontextmanagerr   r   r   r   r   r   Ś<module>   s   
