tf.keras.ops.size

Return the number of elements in a tensor.

Main aliases

tf.keras.ops.numpy.size

x Input tensor.

Number of elements in x.