jeshraghian / snntorch

Deep and online learning with spiking neural networks in Python
https://snntorch.readthedocs.io/en/latest/
MIT License
1.17k stars 202 forks source link

Repalce "torch._six.string_classes" with "str" in neuromorphic_dataset.py #284

Closed githubofaliyev closed 3 months ago

githubofaliyev commented 5 months ago

Since Pytorch dropped support for _six module, the line https://github.com/jeshraghian/snntorch/blob/bf763fdf5138e976b085a700cc12e6ec3f5d1a44/snntorch/spikevision/neuromorphic_dataset.py#L145C9-L145C56 throws erro with the latest Torch and Python versions.

jeshraghian commented 3 months ago

The datasets module has been deprecated, as Tonic is a far more useful dataloader.