fix api bug of log10, log2
This commit is contained in:
parent
4ea8e84b1e
commit
cfcc19874d
|
@ -8,8 +8,11 @@ mindspore.ops.log10
|
|||
.. math::
|
||||
y_i = log_{10}(x_i)
|
||||
|
||||
.. warning::
|
||||
如果log10的输入值范围在(0, 0.01]或[0.95, 1.05]区间,输出精度可能会受影响。
|
||||
|
||||
.. note::
|
||||
Ascend上输入Tensor的维度要小于等于8,CPU上输入Tensor的维度要小于8。
|
||||
Ascend上输入Tensor的维度要小于等于8,CPU或GPU上输入Tensor的维度要小于8。
|
||||
|
||||
参数:
|
||||
- **x** (Tensor) - 任意维度的输入Tensor。该值必须大于0。
|
||||
|
@ -19,5 +22,4 @@ mindspore.ops.log10
|
|||
|
||||
异常:
|
||||
- **TypeError** - `x` 不是Tensor。
|
||||
- **TypeError** - 在GPU和CPU平台上运行时,`x` 的数据类型不是float16、float32或float64。
|
||||
- **TypeError** - 在Ascend平台上运行时,`x` 的数据类型不是float16或float32。
|
||||
- **TypeError** - 在GPU和CPU平台上运行时,`x` 的数据类型不是float16、float32或float64,在Ascend平台上运行时,`x` 的数据类型不是float16或float32。
|
||||
|
|
|
@ -8,8 +8,11 @@ mindspore.ops.log2
|
|||
.. math::
|
||||
y_i = log_{2}(x_i)
|
||||
|
||||
.. warning::
|
||||
如果log2的输入值范围在(0, 0.01]或[0.95, 1.05]区间,输出精度可能会受影响。
|
||||
|
||||
.. note::
|
||||
Ascend上输入Tensor的维度要小于等于8,CPU上输入Tensor的维度要小于8。
|
||||
Ascend上输入Tensor的维度要小于等于8,CPU或GPU上输入Tensor的维度要小于8。
|
||||
|
||||
参数:
|
||||
- **x** (Tensor) - 任意维度的输入Tensor。该值必须大于0。
|
||||
|
@ -19,5 +22,4 @@ mindspore.ops.log2
|
|||
|
||||
异常:
|
||||
- **TypeError** - `x` 不是Tensor。
|
||||
- **TypeError** - 在GPU和CPU平台上运行时,`x` 的数据类型不是float16、float32或float64。
|
||||
- **TypeError** - 在Ascend平台上运行时,`x` 的数据类型不是float16或float32。
|
||||
- **TypeError** - 在GPU和CPU平台上运行时,`x` 的数据类型不是float16、float32或float64。在Ascend平台上运行时,`x` 的数据类型不是float16或float32。
|
||||
|
|
|
@ -6007,8 +6007,8 @@ def log2(x):
|
|||
y_i = log_2(x_i)
|
||||
|
||||
.. warning::
|
||||
If the input value of operator Log2 is within the range (0, 0.01] or [0.95, 1.05], the output accuracy may
|
||||
be affacted. If the input value of operator Log2 is less than or equal to 0, it will not raise Error.
|
||||
If the input value of operator log2 is within the range (0, 0.01] or [0.95, 1.05], the output accuracy may
|
||||
be affected.
|
||||
|
||||
.. note::
|
||||
The dimension of the input Tensor on Ascend should be less than or equal to 8, and the dimension of the
|
||||
|
@ -6219,8 +6219,8 @@ def log10(x):
|
|||
y_i = log_{10}(x_i)
|
||||
|
||||
.. warning::
|
||||
If the input value of operator Log10 is within the range (0, 0.01] or [0.95, 1.05], the output accuracy may
|
||||
be affacted. If the input value of operator Log10 is less than or equal to 0, it will not raise Error.
|
||||
If the input value of operator log10 is within the range (0, 0.01] or [0.95, 1.05], the output accuracy may
|
||||
be affected.
|
||||
|
||||
.. note::
|
||||
The dimension of the input Tensor on Ascend should be less than or equal to 8, and the dimension of the
|
||||
|
|
Loading…
Reference in New Issue