
Last chance! 50% off unlimited learning
Sale ends in
Applies the Gaussian Error Linear Units function:
nn_gelu()
Input: *
means, any number of additional
dimensions
Output:
where
# NOT RUN {
if (torch_is_installed()) {
m = nn_gelu()
input <- torch_randn(2)
output <- m(input)
}
# }
Run the code above in your browser using DataLab