未验证 提交 1a7b3ff6 编写于 作者: H hlygit66666 提交者: GitHub

fix cumprod docs (#35647)

* fix cumprod docs

* fix cumprod op docs; test=document_fix
上级 53e294ca
......@@ -1931,6 +1931,7 @@ def cumprod(x, dim=None, dtype=None, name=None):
x (Tensor): the input tensor need to be cumproded.
dim (int): the dimension along which the input tensor will be accumulated. It need to be in the range of [-x.rank, x.rank), where x.rank means the dimensions of the input tensor x and -1 means the last dimension.
dtype (str, optional): The data type of the output tensor, can be float32, float64, int32, int64, complex64, complex128. If specified, the input tensor is casted to dtype before the operation is performed. This is useful for preventing data type overflows. The default value is None.
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
Returns:
Tensor, the result of cumprod operator.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册