mindspore.Tensor.cos

查看源文件
mindspore.Tensor.cos()

详情请参考 mindspore.ops.cos()

支持平台:

Ascend GPU CPU

样例:

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor
>>> input = Tensor(np.array([0.24, 0.83, 0.31, 0.09]), mindspore.float32)
>>> output = input.cos()
>>> print(output)
[0.971338 0.6748758 0.95233357 0.9959527]