latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.cos
- tensorplay.functional.cos(input, *, out=None) Tensor[source]
Returns a new tensor with the cosine of the elements of
input.- Parameters:
input (Tensor) – the input tensor.
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.randn(4) >>> a tensor([ 1.4309, 1.2706, -0.8562, 0.9796]) >>> tensorplay.cos(a) tensor([ 0.1395, 0.2957, 0.6553, 0.5574])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

