mindspore/docs/api/api_python/ops/mindspore.ops.func_rad2deg.rst

17 lines
444 B
ReStructuredText
Raw 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.ops.rad2deg
======================
.. py:function:: mindspore.ops.rad2deg(x)
逐元素地将 `x` 从弧度制转换为度数制。
参数:
- **x** (Tensor) - 输入的Tensor。
返回:
Tensor其数据类型和shape与 `x` 相同。
异常:
- **TypeError** - 如果 `x` 不是一个Tensor。
- **TypeError** - 如果 `x` 的数据类型不是float16float32或float64。