Returns a new tensor with the arctangent of the elements of input1 and input2.

tch_atan2(x, other)

Arguments

x

tensor object

other

also a tensor object

Examples

x <- tensor(array(runif(8), dim = c(2,2,2))) y <- tensor(array(runif(8), dim = c(2,2,2))) tch_atan2(x, y)
#> tensor #> (1,.,.) = #> 1.4303 0.7137 #> 0.2086 0.3299 #> #> (2,.,.) = #> 0.7273 1.1640 #> 1.0951 1.3085 #> [ Variable[CPUFloatType]{2,2,2} ]