tf.raw_ops.SparseMatrixNNZ

Returns the number of nonzeroes of sparse_matrix.

sparse_matrix A Tensor of type variant. A CSRSparseMatrix.
name A name for the operation (optional).

A Tensor of type int32.