triton.experimental.gluon.language.cos

triton.experimental.gluon.language.cos(x, _semantic=None)

Computes the element-wise cosine of x.

Parameters:

x (Block) – the input values

This function can also be called as a member function on tensor, as x.cos() instead of cos(x).