R/tensor.R
tch_sqrt.Rd
Returns a new tensor with the square-root of the elements of x
tch_sqrt(x)
tensor object
x <- tensor(matrix(rnorm(6), nrow = 3)) tch_sqrt(x)#> tensor #> nan 1.5751 #> 0.3923 nan #> 0.6428 0.6487 #> [ Variable[CPUFloatType]{3,2} ]