# tf.experimental.numpy.shape

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/numpy_ops/np_array_ops.py#L1094-L1103) |

TensorFlow variant of NumPy's `shape`.

    tf.experimental.numpy.shape(
        a
    )

See the NumPy documentation for [`numpy.shape`](https://numpy.org/doc/1.18/reference/generated/numpy.shape.html).