
    BVhX                     f    d Z ddlZddlmZ ddlmZ ddlmZ i Z ej                         Z
d Zd Zy)zGlobal registry for OpDefs.    N)
op_def_pb2)pywrap_tensorflow)_op_def_registryc                 R   	 t         |    S # t        $ r Y nw xY wt        5  	 t         |    cddd       S # t        $ r Y nw xY wt        j                  |       }|
	 ddd       yt        j                         }|j                  |       |t         | <   |cddd       S # 1 sw Y   yxY w)z@Returns an OpDef for a given `name` or None if the lookup fails.N)_cacheKeyError_cache_lockr   getr   OpDefParseFromString)nameserialized_op_defop_defs      [/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/framework/op_def_registry.pyr
   r
       s    	$<	 		  D\   
 ),,T2   F
,-F4L  s6    	B4	A BA  B$/BB&c                       y)zHNo-op. Used to synchronize the contents of the Python registry with C++.N r       r   syncr   9   s    r   )__doc__	threadingtensorflow.core.frameworkr   tensorflow.pythonr   tensorflow.python.frameworkr   r   Lockr	   r
   r   r   r   r   <module>r      s6     "  0 / 8
 
inn2Qr   