Returns a new tensor with the cosine of the elements of input

tch_cos(x)

Arguments

x

tensor object

Examples

tch_cos(tensor(pi))
#> tensor #> -1 #> [ Variable[CPUFloatType]{1} ]