!19617 fix numpy native docs r1.3

Merge pull request !19617 from 杨林枫/code_docs_fix_numpy_native
This commit is contained in:
i-robot 2021-07-08 03:25:41 +00:00 committed by Gitee
commit 7558e03042
2 changed files with 3 additions and 3 deletions

View File

@ -379,7 +379,7 @@ class Tensor(Tensor_):
Then, tensor.itemset(\*args) is equivalent to :math:`tensor[args] = item`.
Args:
args (Union[(Number), (int/tuple(int), Number)]): The arguments that
args (Union[(numbers.Number), (int/tuple(int), numbers.Number)]): The arguments that
specify the index and value. If `args` contain one argument (a scalar),
it is only used in case tensor is of size 1. If `args` contain two
arguments, the last argument is the value to be set and must be a

View File

@ -466,8 +466,8 @@ def isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
Args:
a (Union[Tensor, list, tuple]): Input first tensor to compare.
b (Union[Tensor, list, tuple]): Input second tensor to compare.
rtol (Number): The relative tolerance parameter (see Note).
atol (Number): The absolute tolerance parameter (see Note).
rtol (numbers.Number): The relative tolerance parameter (see Note).
atol (numbers.Number): The absolute tolerance parameter (see Note).
equal_nan (bool): Whether to compare ``NaN`` as equal. If True, ``NaN`` in
`a` will be considered equal to ``NaN`` in `b` in the output tensor.