tf.check_pinned

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

When run:

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

tensor A Tensor.
name A name for the operation (optional).

A Tensor. Has the same type as tensor.