# tf.compat.v2.size

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/array_ops.py#L497-L501) |

    tf.compat.v2.size(
        input, out_type=tf.dtypes.int32, name=None
    )