hls4snn is a fork of hls4ml focused on spiking neural network (SNN) functionality in the PyTorch frontend, while keeping the upstream hls4ml workflow and documentation structure.
- Added initial SNN conversion support for PyTorch models using
snntorchmodules. - Added SNN neuron/readout templates and related conversion backend plumbing.
- Added SNN-focused tests and documentation.
Install SNN development dependencies from this repository:
pip install -r requirements-snn-dev.txtSNN feature details, supported modules, and behavior notes are documented in:
A demo of the SNN functionality is in:
These take you from building and training a simple SNN in snntorch, to running it through hls4ml and getting Vitis reports. The longer demo also includes optional NeuroBench metrics.