Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
esythan committed Dec 22, 2021
1 parent 3d074e5 commit 8702dc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/paddle/tensor/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 8702dc0

Please sign in to comment.