# tf.raw_ops.OutfeedDequeueV2

<br />

Retrieves a single tensor from the computation outfeed.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.OutfeedDequeueV2(
        device_ordinal, dtype, shape, name=None
    )

Device ordinal is a
tensor allowing dynamic outfeed.

This operation will block indefinitely until data is available.

Args:
device_ordinal: A `Tensor` of type `int32`.
An int scalar tensor, representing the TPU device to use. This should be -1 when
the Op is running on a TPU device, and \>= 0 when the Op is running on the CPU
device.
dtype: A [`tf.DType`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/dtypes/DType). The type of elements in the tensor.
shape: A [`tf.TensorShape`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/TensorShape) or list of `ints`. The shape of the tensor.
name: A name for the operation (optional).

Returns:
A `Tensor` of type `dtype`.