mindspore/docs/api/api_python/ops/mindspore.ops.PopulationCou...

15 lines
526 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.PopulationCount
=============================
.. py:class:: mindspore.ops.PopulationCount
计算二进制数中1的个数。
更多参考详见 :func:`mindspore.ops.population_count`
输入:
- **input_x** (Tensor) - 任意维度的Tensor。Ascend平台支持的数据类型为int16、uint16CPU和GPU平台支持的数据类型为int8、int16、int32、int64、uint8、uint16、uint32、uint64。
输出:
Tensorshape与 `input_x` 相同数据类型为uint8。