fangwei123456 / spikingjelly

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

关于ANN2SNN,if_resnet18_cifar10.py运行报错的问题 #86

Closed huatianxue1994 closed 3 years ago

huatianxue1994 commented 3 years ago

我在运行此程序的时候,碰到了如下错误: AttributeError: module 'spikingjelly.clock_driven.neuron' has no attribute 'NSIFNode'

当前使用的是0.0.0.6版本,这个错误要如何处理呢? 看起来像是neuron模块中没有NSIFNode函数。我本地电脑上有之前0.0.0.4的版本,查看0.0.0.4版本的neuron.py中也没有NSIFNode函数。

huatianxue1994 commented 3 years ago

@DingJianhao 讲,NSIFNode这个函数已经去掉了,用处不大

fangwei123456 commented 3 years ago

嗯,我查了一下现在应该只有这个地方用到了:

https://github.com/fangwei123456/spikingjelly/blob/542a06430992780c4a18d6c998e5a10445e968d2/spikingjelly/clock_driven/ann2snn/__init__.py#L121

用try语句框住了,在没有这个模块的情况下应该也不会报错