mindspore.ops.population_count ============================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_population_count.rst :alt: 查看源文件 .. py:function:: mindspore.ops.population_count(input_x) 计算输入tensor中每个元素二进制的1比特数量。 参数: - **input_x** (Tensor) - 输入tensor。 返回: Tensor