-
Notifications
You must be signed in to change notification settings - Fork 143
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
TernaryLIF and refactoring of LIF to inherit from AbstractLIF #151
Conversation
Signed-off-by: Risbud, Sumedh <[email protected]>
Also, the type hints are missing. This is not fully consistent across all the repo, but we would want to incorporate it to reduce technical debt later.
|
Signed-off-by: Risbud, Sumedh <[email protected]>
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.
Thanks for the implementation! For now, I reviewed processes and processes tests. Will come back tomorrow to review models and models tests but posting now in case is useful.
Signed-off-by: Risbud, Sumedh <[email protected]>
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.
Overall, I think this looks good.
In the next refactor, if we keep this Abstract parent class/inheritance style structure, I would take bias and bias_exp vars out of the AbstractLIF Process and make them part of a fixed-point mix-in for a child LIF class.
I would also allow for heterogeneous du, dv, v_th, etc within a LIF Process, in anticipation of the Loihi2 compiler.
But, we have some decisions to make about the organization about neuron Procs before then and I think these 2 items can wait a bit.
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.
Looks good! Thanks for addressing some of the comments.
PS: You might add new issues for the comments were the discussion was inconclusive so that we don't forget about it ;)
…c#151) * TernaryLIF and refactoring of LIF to inherit from AbstractLIF Signed-off-by: Risbud, Sumedh <[email protected]> * Minor changes post @bamsumit review Signed-off-by: Risbud, Sumedh <[email protected]> * Changes after @GaboFGuerra's code review Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh [email protected]
Issue Number: #150
Objective of pull request: To merge TernaryLIF behaviour along with related refactoring of the LIF Process
Pull request checklist
Your PR fulfills the following requirements:
pyb
) passes locallypyb -E unit
) or (python -m unittest
) passes locallyPull request type
Please check your PR type:
What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
Supplemental information