Skip to content

Basic SNN functionality in hls4ml (mapped from snntorch)#1470

Open
bmdillon wants to merge 13 commits intofastmachinelearning:mainfrom
bmdillon:hls4ml-pr
Open

Basic SNN functionality in hls4ml (mapped from snntorch)#1470
bmdillon wants to merge 13 commits intofastmachinelearning:mainfrom
bmdillon:hls4ml-pr

Conversation

@bmdillon
Copy link
Copy Markdown

@bmdillon bmdillon commented May 5, 2026

Description

This PR adds initial PyTorch/SNN support to hls4ml.

It includes conversion support for IF/LIF neuron layers, SNN readout handling, Vivado templates, documentation, tests, and a small example notebook.

Dependencies:

  • snntorch
  • torch

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Tests

Added pytest coverage for PyTorch SNN parsing, IF/LIF layer handling, scalar/vector beta and threshold values, SNN readout options, and custom PyTorch SNN extension parsing.

@vloncar vloncar self-assigned this May 6, 2026
@bmdillon
Copy link
Copy Markdown
Author

bmdillon commented May 8, 2026

pre-commit.ci autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants