ddbourgin / numpy-ml

Machine learning, in numpy
https://numpy-ml.readthedocs.io/
GNU General Public License v3.0
15.26k stars 3.7k forks source link

Update GELU to actually use approximate parameter instead of always being set to True #84

Closed MichaelLesirge closed 1 year ago

MichaelLesirge commented 1 year ago

Update the GELU (Gaussian error linear unit) activation's init function so that self.approximate is set to the approximate parameter instead of always being set to True regardless of what the user passes in.