Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tfl.lattice_lib.count_non_zeros

View source on GitHub

Returns total number of non 0 elements in given iterables.

tfl.lattice_lib.count_non_zeros(
    *iterables
)