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

17 lines
477 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)
计算一个新的Tensor其中 `x` 的每个角度元素都从弧度转换为度。
参数:
- **x** (Tensor) - 输入的Tensor。
返回:
Tensor其数据类型和shape与 `x` 相同。
异常:
- **TypeError** - 如果 `x` 不是一个Tensor。
- **TypeError** - 如果 `x` 的数据类型不是float16float32或float64。