A Dynamic Surrogate Gradient Function for Memristive Spiking Neural Networks | IEEE Conference Publication | IEEE Xplore