# tf.shape_n

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/shape_n) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/ops/array_ops.py#L659-L676) |

Returns shape of tensors.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.shape_n(
        input, out_type=tf.dtypes.int32, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `input` | A list of at least 1 `Tensor` object with the same type. |
| `out_type` | The specified output type of the operation (`int32` or `int64`). Defaults to [`tf.int32`](https://www.tensorflow.org/versions/r2.3/api_docs/python/tf#int32)(optional). |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list with the same length as `input` of `Tensor` objects with type `out_type`. ||

<br />