Returns a new tensor with the sine of the elements of input.

tch_sin(x)

Arguments

x

tensor object

Examples

x <- tensor(array(runif(8), dim = c(2,2,2))) tch_sin(x)
#> tensor #> (1,.,.) = #> 0.6470 0.1105 #> 0.6955 0.7489 #> #> (2,.,.) = #> 0.1467 0.8066 #> 0.1754 0.5406 #> [ Variable[CPUFloatType]{2,2,2} ]