220 Star 932 Fork 686

GVPMindSpore/mindscience

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sponge.function.reduce_prod.rst 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
俞涵 提交于 2年前 . modify format

sponge.function.reduce_prod

.. py:function:: sponge.function.reduce_prod(x: Tensor, axis: Union[int, Tuple[int], List[int]] = ())

    默认情况下,通过乘以维度中所有元素来减少张量的维度。
    并且还可以沿轴减小 `x` 的维度。有关详细信息请参见 `mindspore.ops.ReduceProd` 。

    参数:
        - **x** (Tensor[Number]) - 输入张量。要约简的张量的 dtype 是 bool。
          :math:`(N,*)` 其中的 :math:`*` 代表任意数量的附加维度,其维度应小于 8。
        - **axis** (Union[int, tuple(int), list(int)]) - 要减小的维度。默认值:(),减小所有维度。
          只允许常量值。必须在范围 [-r, r)。

    输出:
        Tensor。和 `x` 有相同的dtype。
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mindspore/mindscience.git
git@gitee.com:mindspore/mindscience.git
mindspore
mindscience
mindscience
master

搜索帮助