Applies the Gaussian Error Linear Units function:
Examples
if (torch_is_installed()) {
m <- nn_gelu()
input <- torch_randn(2)
output <- m(input)
}
Applies the Gaussian Error Linear Units function:
if (torch_is_installed()) {
m <- nn_gelu()
input <- torch_randn(2)
output <- m(input)
}