Skip to content

Commit baa44aa

Browse files
liyagit21AnnaTrainingG
authored andcommitted
fix cumprod docs (PaddlePaddle#35647)
* fix cumprod docs * fix cumprod op docs; test=document_fix
1 parent 4275e7e commit baa44aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/tensor/math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,6 +1931,7 @@ def cumprod(x, dim=None, dtype=None, name=None):
19311931
x (Tensor): the input tensor need to be cumproded.
19321932
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.
19331933
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.
1934+
name (str, optional): Name for the operation (optional, default is None). For more information, please refer to :ref:`api_guide_Name`.
19341935
19351936
Returns:
19361937
Tensor, the result of cumprod operator.

0 commit comments

Comments
 (0)