synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
81 stars 8 forks source link

Nonseq #245

Open ssinhaleite opened 4 months ago

ssinhaleite commented 4 months ago

Checklist before requesting a review

Unit tests

bauerfe commented 1 month ago

I fixed a bunch of unit tests that broke during the last commits. tests/test_dynapcnnnetwork is still failing because I converted NIRtoDynapcnnNetworkGraph.edges to a set, so the order is not guaranteed anymore. I am currently handling the issue.

bauerfe commented 4 weeks ago

We will also have to see if we can still support batchnorm layers in the original SNN, and under which conditions. So far, sinabs supports that.

bauerfe commented 2 weeks ago

All unit tests passing on my machine :champagne:

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 87.16012% with 170 lines in your changes missing coverage. Please review.

Project coverage is 88.83%. Comparing base (276eda3) to head (347e225). Report is 13 commits behind head on develop.

Files with missing lines Patch % Lines
sinabs/backend/dynapcnn/dynapcnn_network.py 71.92% 48 Missing :warning:
sinabs/backend/dynapcnn/sinabs_edges_handler.py 90.03% 26 Missing :warning:
sinabs/backend/dynapcnn/dynapcnnnetwork_module.py 85.27% 19 Missing :warning:
sinabs/backend/dynapcnn/nir_graph_extractor.py 93.51% 17 Missing :warning:
sinabs/backend/dynapcnn/utils.py 86.02% 13 Missing :warning:
sinabs/backend/dynapcnn/dynapcnn_layer.py 87.01% 10 Missing :warning:
sinabs/backend/dynapcnn/exceptions.py 82.69% 9 Missing :warning:
sinabs/utils.py 84.21% 6 Missing :warning:
sinabs/backend/dynapcnn/dynapcnn_layer_utils.py 94.94% 5 Missing :warning:
sinabs/from_torch.py 0.00% 5 Missing :warning:
... and 4 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #245 +/- ## =========================================== - Coverage 90.91% 88.83% -2.08% =========================================== Files 52 58 +6 Lines 2718 3664 +946 =========================================== + Hits 2471 3255 +784 - Misses 247 409 +162 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

bauerfe commented 2 weeks ago

All checks passing on the CI now (with warnings from codecov - we should probably add more unit tests eventually).

bauerfe commented 2 weeks ago

I have extended the to-do list in the original post to be more specific and complete. It should now mention everything that still needs to be addressed. Please feel free to add and tick off items when appropriate.