Returns a new tensor with the square-root of the elements of x

tch_sqrt(x)

Arguments

x

tensor object

Examples

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} ]