mindspore.mint.cumprod ====================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/mint/mindspore.mint.func_cumprod.rst :alt: 查看源文件 .. py:function:: mindspore.mint.cumprod(input, dim, dtype=None) 返回tensor在指定维度上累积的元素乘积。 .. math:: y_i = x_1 * x_2 * x_3 * ... * x_i 参数: - **input** (Tensor) - 输入tensor。 - **dim** (int) - 指定计算维度。 - **dtype** (:class:`mindspore.dtype`, 可选) - 返回的数据类型。默认 ``None`` 。 返回: Tensor