
    BVhr                     J    d Z ddlmZ ddlmZ  edg      dedefd       Zy	)
z&Helper functions for TPU device names.    )Text)	tf_exportztpu.core)v1numreturnc                 $    dj                  |       S )zReturns the device name for a core in a replicated TPU computation.

  Args:
    num: the virtual core number within each replica to which operators should
    be assigned.
  Returns:
    A device name, suitable for passing to `tf.device()`.
  zdevice:TPU_REPLICATED_CORE:{})format)r   s    S/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/tpu/tpu_name_util.pycorer      s     
)	/	/	44    N)__doc__typingr    tensorflow.python.util.tf_exportr   intr    r   r
   <module>r      s9    -  6 zl	5c 	5d 	5 	5r   