From 1a7b3ff61e656a3110890abcee1fa22a74271c14 Mon Sep 17 00:00:00 2001 From: hlygit66666 <32728786+hlygit66666@users.noreply.github.com> Date: Mon, 13 Sep 2021 14:19:12 +0800 Subject: [PATCH] fix cumprod docs (#35647) * fix cumprod docs * fix cumprod op docs; test=document_fix --- python/paddle/tensor/math.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index b121e0ecf9..14a925ef3e 100755 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -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. -- GitLab