From 9797d1006b3aa8e35ae8b589b2a0589f66a7d69e Mon Sep 17 00:00:00 2001 From: tiancaishaonvjituizi <452565578@qq.com> Date: Wed, 18 May 2022 12:02:56 +0800 Subject: [PATCH] refine docs --- python/paddle/tensor/math.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index 62315de57c180..b0fee7aaec02a 100644 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -2980,11 +2980,11 @@ def logcumsumexp(x, axis=None, dtype=None, name=None): logcumsumexp(x)_{ij} = log \sum_{i=0}^{j}exp(x_{ij}) - **Note**: + Note: The first element of the result is the same of the first element of the input. Args: - x (Tensor): The input tensor + x (Tensor): The input tensor. axis (int, optional): The dimension to do the operation along. -1 means the last dimension. The default (None) is to compute the cumsum over the flattened array. dtype (str, optional): The data type of the output tensor, can be float32, float64. 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`.