mindspore.ops.histc ==================== .. 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_histc.rst :alt: 查看源文件 .. py:function:: mindspore.ops.histc(input, bins=100, min=0., max=0.) 计算tensor的直方图。 元素被分类到 `min` 和 `max` 之间的等宽箱中。 如果 `min` 和 `max` 均为0,则使用数据的最小值和最大值。 低于最小值和高于最大值的元素将被忽略。 参数: - **input** (Tensor) - 输入tensor。 - **bins** (int, 可选) - 直方图箱的数量。默认 ``100`` 。 - **min** (int, float, 可选) - 直方图数据范围的最小值。默认 ``0.`` 。 - **max** (int, float, 可选) - 直方图数据范围的最大值。默认 ``0.`` 。 返回: Tensor