# tf.raw_ops.StackPush

<br />

Deprecated, use StackPushV2.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.StackPush(
        handle, elem, swap_memory=False, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `handle` | A `Tensor` of type mutable `string`. |
| `elem` | A `Tensor`. |
| `swap_memory` | An optional `bool`. Defaults to `False`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />