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

17 lines
555 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.deg2rad
======================
.. py:function:: mindspore.ops.deg2rad(x)
计算一个新的Tensor其中 `x` 的每个角度元素都从度转换为弧度。
参数:
- **x** (Tensor[Number]) - 输入的Tensor。其必须是一个正定矩阵数据类型为float16float32或float64。
返回:
Tensor其数据类型与 `x` 相同。
异常:
- **TypeError** - 如果 `x` 不是一个Tensor。
- **TypeError** - 如果 `x` 的数据类型不是float16float32或float64。