<br />

Checks whether a tensor is located in host memory pinned for GPU.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.check_pinned`](https://www.tensorflow.org/api_docs/python/tf/check_pinned)

<br />

    tf.check_pinned(
        tensor: Annotated[Any, TV_CheckPinned_T], name=None
    ) -> Annotated[Any, TV_CheckPinned_T]

#### When run:

- Reports an `InvalidArgument` error if `tensor` is not in pinned memory.
- Reports a `FailedPrecondition` error if not built with CUDA.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | A `Tensor`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `tensor`. ||

<br />