tf.experimental.numpy.count_nonzero

View source on GitHub

TensorFlow variant of NumPy's count_nonzero.

See the NumPy documentation for numpy.count_nonzero.