# tf.raw_ops.StackPopV2

<br />

Pop the element at the top of the stack.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.StackPopV2(
        handle, elem_type, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `handle` | A `Tensor` of type `resource`. The handle to a stack. |
| `elem_type` | A [`tf.DType`](https://www.tensorflow.org/api_docs/python/tf/dtypes/DType). The type of the elem that is popped. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `elem_type`. ||

<br />