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)