17 lines
475 B
ReStructuredText
17 lines
475 B
ReStructuredText
mindspore.numpy.positive
|
|
========================
|
|
|
|
.. py:function:: mindspore.numpy.positive(a, dtype=None)
|
|
|
|
数值取正,逐元素计算。
|
|
|
|
.. note::
|
|
不支持NumPy参数 `out` 、 `where` 、 `casting` 、 `order` 、 `subok` 、 `signature` 、 `extobj` 。
|
|
|
|
参数:
|
|
- **a** (Tensor) - 输入Tensor。
|
|
- **dtype** (mindspore.dtype, 可选) - 默认值: ``None`` 。 覆盖输出Tensor的dtype。
|
|
|
|
返回:
|
|
Tensor。
|