Inplace version of cos API, the output Tensor will be inplaced with input x. Please refer to cos.
cos
x