fix numbers.Number

This commit is contained in:
yanglf1121 2021-07-07 18:46:06 +08:00
parent 3d04d0362b
commit bc0ce14b3d
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.