hxtorch.spiking.functional.threshold
Threshold function providing functionality for making spiking outputs differentiable. Inspired by https://github.com/norse/norse/blob/
72a812e17da23487878a667ad82a075ef7ad91ec/norse/torch/functional/ superspike.py