Perform the GELU (Gaussian Error Linear Unit) activation function on an input matrix:
The GELU function is defined as:
where is the cumulative distribution function of the standard normal distribution.
A common approximation for GELU is:
GPU Type
Language
Data Type
Loading editor...
CUDA C++ environment
Sample Run Results
Hit "Run" to test your code with sample inputs
For the best coding experience, please switch to a desktop device to write and submit your solution.