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

19 lines
369 B
ReStructuredText
Raw Normal View History

2022-05-28 14:44:02 +08:00
mindspore.ops.tan
===================
.. py:function:: mindspore.ops.tan(x)
计算输入元素的正切值。
.. math::
out_i = tan(x_i)
2022-07-26 10:27:56 +08:00
参数:
- **x** (Tensor) - Tan的输入任意维度的Tensor。
2022-05-28 14:44:02 +08:00
2022-07-26 10:27:56 +08:00
返回:
Tensor数据类型和shape与 `x` 相同。
2022-05-28 14:44:02 +08:00
2022-07-26 10:27:56 +08:00
异常:
- **TypeError** - `x` 不是Tensor。