mindspore.Tensor.count_nonzero

mindspore.Tensor.count_nonzero(axis=(), keep_dims=False, dtype=mstype.int32)[源代码]

详情请参考 mindspore.ops.count_nonzero()