R/tensor.R
tch_sigmoid.Rd
Returns a new tensor with the sigmoid of the elements of each of the elements of x: 1/(1 + exp(-x)).
tch_sigmoid(x)
tensor object
x <- tensor(matrix(rnorm(6), nrow = 3)) tch_sigmoid(x)#> tensor #> 0.5561 0.6003 #> 0.3252 0.3206 #> 0.2275 0.4596 #> [ Variable[CPUFloatType]{3,2} ]