-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update NIR <> snnTorch #246
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
a2d05dd
start import functionality for NIR
stevenabreu7 f592cc3
add support for RLeaky and RSynaptic
stevenabreu7 7ef2e5d
minor fix
stevenabreu7 7701cc0
minor fix #2
stevenabreu7 d3f1a8c
rename export + fix subgraph
stevenabreu7 d2755ff
remove hack to rename subgraph edges
stevenabreu7 e2e92c3
make import and export work for RNN
stevenabreu7 d3ee326
import & export using nirtorch (instead of manual)
stevenabreu7 14767e5
RNN nirtorch export/import works but still buggy
stevenabreu7 708faa2
minor
stevenabreu7 9004cda
update NIRTorch import/export (not done)
stevenabreu7 a9b7cee
version for braille-v2
stevenabreu7 0c7f692
update to latest support! (use init_hidden=False)
stevenabreu7 2ada175
rm dead code
stevenabreu7 0d45ad1
adapt NIR-standard thresholding for (r)synaptic
stevenabreu7 cb684c6
rename reset_after -> reset_delay (+ invert)
stevenabreu7 4352c60
add conv/if/pool to import
stevenabreu7 a204457
fix reset_delay (+ add for (r)leaky)
stevenabreu7 f5ef7f4
bias bug fix
stevenabreu7 8c7c786
move to using nirtorch
stevenabreu7 f962f3c
minor changes
stevenabreu7 208c87f
+ Leaky export
stevenabreu7 d831179
remove old files
stevenabreu7 38f19cd
add docstrings
stevenabreu7 04b1d02
rename files
stevenabreu7 bdb15a3
test suggestions
stevenabreu7 3710dfb
leaky syntax change
jeshraghian 35e6da0
Merge remote-tracking branch 'upstream/master' into nir
jeshraghian 9adbcef
solve conflicts for updated leaky neuron forward-pass
jeshraghian eec1045
membrane potential init bug fix
jeshraghian b6dc7d9
rename again (import.py is invalid)
stevenabreu7 11684cf
add lif nir graph
stevenabreu7 d9df668
tests
stevenabreu7 40ad136
missing features into docstring
stevenabreu7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from ._version import __version__ | ||
from ._neurons import * | ||
from ._layers import * | ||
from .export_nir import export_to_nir | ||
from .import_nir import import_from_nir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a clarifying comment: @jeshraghian and I discussed this a while ago - this flag is needed to match up the neuron dynamics with NIR. (with the default value, snntorch will behave exactly as before)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest version of the Leaky neuron had some minor refactoring to get it compatible with torch.compile(), so there will be some conflicts. I'll iron these out today.