# tf.compat.v1.tpu.core

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/tpu/tpu_name_util.py#L21-L31) |

Returns the device name for a core in a replicated TPU computation.

    tf.compat.v1.tpu.core(
        num: int
    ) -> Text

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num` | the virtual core number within each replica to which operators should be assigned. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A device name, suitable for passing to [`tf.device()`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/device). ||

<br />