Applies the Gaussian Error Linear Units function:
When the approximate
is True
, GELU is estimated with:
Estimated GELU with tanh approximate
Shape:
Shape: same as X
If gate
is presentes, output should become
Shape: same as X
Applies the Gaussian Error Linear Units function:
When the approximate
is True
, GELU is estimated with:
Estimated GELU with tanh approximate
Shape:
Shape: same as X
If gate
is presentes, output should become
Shape: same as X