Overview of snnTorch components
mastersnnTorch is a Python package for gradient-based learning with spiking neural networks (SNNs), extending PyTorch to support spiking neuron models as recurrent activation units. The library is organized into several functional modules:
snntorch: The core spiking neuron library, deeply integrated with PyTorch's autograd.snntorch.spikegen: Tools for spike generation and converting data to spike formats.snntorch.functional: Common arithmetic operations for spikes (e.g., loss functions, regularization).snntorch.surrogate: Provides optional surrogate gradient functions for training.snntorch.spikeplot: Visualization tools for spike-based data using matplotlib and celluloid.snntorch.utils: Utility functions for datasets.snntorch.import_nir/snntorch.export_nir: Enables importing/exporting to other SNN libraries via the NIR (Neural Intermediate Representation) framework.