mindspore.ops.cos ================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_cos.rst :alt: 查看源文件 .. py:function:: mindspore.ops.cos(input) 逐元素计算输入tensor的余弦。 .. math:: out_i = \cos(x_i) .. warning:: 如果使用float64,可能会存在精度丢失的问题。 参数: - **input** (Tensor) - 输入tensor。 返回: Tensor