Open gwgknudayanga opened 10 months ago
Hello, if you want to see "snn tailor" parts, you can refer to _snn_model.namedmodules().
To your three questions:
You can rewrite the source code of converter.py in SpikingJelly. Just change the 314-th line of converter.py:
m1 = neuron.IFNode(v_threshold=1., v_reset=None)
Change this IFNode to LIF/ALIF.
In addition, if you want to change IFNode in a snn_model that finished converting, you can change the related modules in _snn_model.namedmodules().
Maybe you should rewrite the source code of IFNode in neuron.py. Or you can design your own spiking neuron. It is not very difficult.
As discussed above, you may design your own spiking neuron.
Hope it is helpful.
Hi,
after i did the conversion from ann to snn the converted snn model is look like this. However i cannot see the snn tailor part with snn_model.named_parameters() method. Actually i want to know,