ReLU gates inputs with a hard threshold at zero. GELU (Hendrycks & Gimpel, 2016) gates each input by how likely it is to be positive under a Gaussian, giving a smooth version of that decision.
Implement gelu_exact(x), which returns x * Phi(x), where Phi is the standard normal cumulative distribution.
math.erf; no SciPy.Phi(x) = 0.5 * (1 + erf(x / sqrt(2))). Multiply the input by that value.
No results yet
Run your code to check it against the examples, or submit to run every test.