tf.raw_ops.SparseMatrixNNZ

Returns the number of nonzeroes of sparse_matrix.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.SparseMatrixNNZ

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

A Tensor of type int32.