mindspore/docs/api/api_python/numpy/mindspore.numpy.radians.rst

16 lines
490 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.numpy.radians
=======================
.. py:function:: mindspore.numpy.radians(x, dtype=None)
将角从角度制转换为弧度制。
参数:
- **x** (Tensor) - 角度制角。
- **dtype** (mindspore.dtype, 可选) - 默认值: ``None`` 。 覆盖输出Tensor的dtype。
返回:
Tensor对应的弧度制角。 如果 `x` 是Tensor标量则返回Tensor标量。
异常:
- **TypeError** - 如果 `x` 不是Tensor。