
Applies the element-wise function:
nn_sigmoid()
Input: *
means, any number of additional
dimensions
Output:
if (torch_is_installed()) {
m <- nn_sigmoid()
input <- torch_randn(2)
output <- m(input)
}
Run the code above in your browser using DataLab