From 8702dc08e349a482a3f4383f74b1aa66e42184ee Mon Sep 17 00:00:00 2001 From: esythan Date: Wed, 22 Dec 2021 03:04:50 +0000 Subject: [PATCH] update doc --- python/paddle/tensor/math.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index 7d89ae9d176a0..522bb067b9593 100755 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -782,7 +782,7 @@ def get_dtype(x, dtype): def nansum(x, axis=None, dtype=None, keepdim=False, name=None): """ - Computes the sum of tensor elements over the given dimension, treating Not a Numbers (NaNs) as zero. + Computes the sum of tensor elements over the given axis, treating Not a Numbers (NaNs) as zero. Args: x (Tensor): An N-D Tensor, the data type is float32, float64, int32 or int64. @@ -802,8 +802,6 @@ def nansum(x, axis=None, dtype=None, keepdim=False, name=None): Returns: Tensor: Results of summation operation on the specified axis of input Tensor `x`, - if `x.dtype='int32'`, it's data type is `'int64'`, - otherwise it's data type is the same as `x`. Raises: TypeError: The type of :attr:`axis` must be int, list or tuple.