diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index b121e0ecf9653f9c247ad2e4465497497bc65771..14a925ef3e285d514b702f7bc05ecfdc424f7562 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.