function cos_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "cos", "float32");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Cos), inputs);
}
Computes cos of the input `tf.Tensor` element-wise: `cos(x)`

```js
const x = tf.tensor1d([0, Math.PI / 2, Math.PI * 3 / 4]);

x.cos().print();  // or tf.cos(x)
```
@param x The input tensor. Must be float32 type.

@doc {heading: 'Operations', subheading: 'Basic math'}