Description
Cannot run IF neurons with CuPy backend when using reset-by-substraction (v_reset=None). The error originates from line 425 of neuron_kernel.py, where NeuronATGBase.pre_forward(py_dict) removes the key 'v_reset' when v_reset is None, and then later in line 429 function NeuronATGBase.ctx_save is using py_dict['v_reset'], causing the following error:
@fangwei123456 Issue type
SpikingJelly version
0.0.0.0.13
Description Cannot run IF neurons with CuPy backend when using reset-by-substraction (
v_reset=None
). The error originates from line 425 ofneuron_kernel.py
, whereNeuronATGBase.pre_forward(py_dict)
removes the key'v_reset'
when v_reset is None, and then later in line 429 functionNeuronATGBase.ctx_save
is usingpy_dict['v_reset']
, causing the following error:Minimal code to reproduce the error/bug