feat: Reset to zero for Leaky
Context
The goal of this MR is to add an option to select a soft reset (subtraction, eq.1 ) or a hard reset (reset to zero, eq. 2) when creating a Leaky Operator.
Note that for the implementation of hard reset, the potential is reset to zero in the next step, so if we have a spike at step
Modified files
-
MetaOperatorDefs.hpp
: Add aLeakyReset
enum and change Leaky constructor; -
Leaky.cpp
: Use the additional LeakyReset constructor parameter to create the Leaky node; -
pybind_MetaOperator.cpp
: reflect the changes made to the constructor; -
Test_MetaOperator.cpp
: Test the instanciation of a Leaky node with reset to zero;
Note: More tests have alaredy been written in aidge_backend_cpu to assert that the behaviour is correct.
Related issue
Fix #219
Merge request reports
Activity
requested review from @pineapple
assigned to @jeromeh
added 54 commits
-
3fd3df2c...03de25a0 - 52 commits from branch
eclipse/aidge:dev
- f0af5b86 - Add a reset to zero for Leaky operator
- 0f09b0a9 - Makes things more readable
-
3fd3df2c...03de25a0 - 52 commits from branch
added Feature 🚀 TopicOperator labels
changed milestone to %aidge v0.6.0
added 6 commits
-
a6561302...3ee75f49 - 5 commits from branch
eclipse/aidge:dev
- 5877c3d3 - Add a reset to zero for Leaky operator
-
a6561302...3ee75f49 - 5 commits from branch
added 14 commits
-
5877c3d3...482e03ba - 13 commits from branch
eclipse/aidge:dev
- 3358dd5f - Add a reset to zero for Leaky operator
-
5877c3d3...482e03ba - 13 commits from branch
enabled an automatic merge when all merge checks for 3358dd5f pass
added 4 commits
-
3358dd5f...9a6798c4 - 3 commits from branch
eclipse/aidge:dev
- fd022d01 - Add a reset to zero for Leaky operator
-
3358dd5f...9a6798c4 - 3 commits from branch
enabled an automatic merge when all merge checks for fd022d01 pass
So is it work in progress? I just need you to add the right status label to your merge requests
Edited by Maxence Naud
added 5 commits
-
fd022d01...374b93b9 - 4 commits from branch
eclipse/aidge:dev
- d0b9adfa - Add a reset to zero for Leaky operator
-
fd022d01...374b93b9 - 4 commits from branch
added StatusWork in Progress label
enabled an automatic merge when all merge checks for f0e41abc pass
removed StatusWork in Progress label
mentioned in merge request aidge_backend_cpu!144 (closed)