-
Notifications
You must be signed in to change notification settings - Fork 144
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
LIF ProcessModels: Floating and fixed point: PR attempt #2 #70
Conversation
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
…created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]>
…created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
…>src/lava reorg) Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
…created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]>
Signed-off-by: Risbud, Sumedh <[email protected]>
Seems like I was successful in fixing the merge issues. There are no merge conflicts anymore. |
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.
Looks good in general.
The most important request from my side are unit tests for the Process Models and their dynamics.
I didn't check the changes to the tutorials.
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 to me. I didn't go through the notebooks. I guess they work ;)
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.
Went over everything once
Nice! But no unit tests for the two Process Models? |
Never mind, I overlooked all of that. Sorry! |
@srrisbud the new lif unittests are really polluting the console with deprication warnings. Apparently they don't show up in /home/sshresth/lava-nc/lava/src/lava/proc/lif/models.py:24: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
a_in: PyInPort = LavaPyType(PyInPort.VEC_DENSE, np.float)
/home/sshresth/lava-nc/lava/src/lava/proc/lif/models.py:26: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
u: np.ndarray = LavaPyType(np.ndarray, np.float) |
…va-nc#70) * Added @tags decorator to tag ProcessModels and distinguish them Signed-off-by: Risbud, Sumedh <[email protected]> * Fixed @tags decorator after pull request review Signed-off-by: Risbud, Sumedh <[email protected]> * LIF: bit-accurate with Loihi and floating point ProcessModels Signed-off-by: Risbud, Sumedh <[email protected]> * Minor change to variable builder to support floating point variables created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]> * Minor change to variable builder to support floating point variables created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]> * lava -> src/lava: reorg to resolve merge conflicts Signed-off-by: Risbud, Sumedh <[email protected]> * tests -> tests/lava: reorg to resolve merge conflicts Signed-off-by: Risbud, Sumedh <[email protected]> * tests -> tests/lava: reorg to resolve merge conflicts Signed-off-by: Risbud, Sumedh <[email protected]> * Manual merge of changes from message passing refactoring (after lava->src/lava reorg) Signed-off-by: Risbud, Sumedh <[email protected]> * Loihi1SimCfg handles subProcs and tags. Tutorials 2-6 work with new LIF * Minor: builder support for float LavaPyType corrected Signed-off-by: Risbud, Sumedh <[email protected]> * LIF: incorporated code-review suggestions Signed-off-by: Risbud, Sumedh <[email protected]> * Manually merge latest lava-nc/lava:main to the personal fork:main Signed-off-by: Risbud, Sumedh <[email protected]> * Minor change to variable builder to support floating point variables created through LavaPyType Signed-off-by: Risbud, Sumedh <[email protected]> * Fixing flake8 flagged line overflows Signed-off-by: Risbud, Sumedh <[email protected]> * Fixing flake8 flagged line overflows Signed-off-by: Risbud, Sumedh <[email protected]> * LIF: changes in response to @mathisrichter's review Signed-off-by: Risbud, Sumedh <[email protected]> Co-authored-by: drager-intel <[email protected]>
There are merge conflicts. Trying to resolve these gracefully, without using the nuclear option of deleting and recreating the entire fork.