From 3b4b8fef180dc7b15584fe784c145c8078a8e256 Mon Sep 17 00:00:00 2001 From: tiancaishaonvjituizi <452565578@qq.com> Date: Wed, 25 May 2022 21:00:33 +0800 Subject: [PATCH] update docs --- python/paddle/tensor/math.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index b0fee7aaec02a..a60679a2d1ddb 100644 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -2908,7 +2908,7 @@ def cumsum(x, axis=None, dtype=None, name=None): The cumulative sum of the elements along a given axis. **Note**: - The first element of the result is the same of the first element of the input. + The first element of the result is the same as the first element of the input. Args: x (Tensor): The input tensor needed to be cumsumed. @@ -2974,14 +2974,14 @@ def logcumsumexp(x, axis=None, dtype=None, name=None): r""" The logarithm of the cumulative summation of the exponentiation of the elements along a given axis. - For summation index j given by dim and other indices i, the result is + For summation index j given by `axis` and other indices i, the result is .. math:: logcumsumexp(x)_{ij} = log \sum_{i=0}^{j}exp(x_{ij}) - Note: - The first element of the result is the same of the first element of the input. + **Note**: + The first element of the result is the same as the first element of the input. Args: x (Tensor): The input tensor.