fangwei123456 / spikingjelly

SpikingJelly is an open-source deep learning framework for Spiking Neural Network (SNN) based on PyTorch.
https://spikingjelly.readthedocs.io
Other
1.29k stars 236 forks source link

Fix bug for piecewise_leaky_relu #413

Closed dkjshk closed 1 year ago

dkjshk commented 1 year ago

The gradient should be 1/2w instead of 1/w.