Skip to content

Conv Process Implementation#73

Merged
srrisbud merged 16 commits intolava-nc:mainfrom
bamsumit:conv-clean
Nov 24, 2021
Merged

Conv Process Implementation#73
srrisbud merged 16 commits intolava-nc:mainfrom
bamsumit:conv-clean

Conversation

@bamsumit
Copy link
Copy Markdown
Contributor

@bamsumit bamsumit commented Nov 18, 2021

Implementation of conv process and process models.

Copy link
Copy Markdown
Contributor

@awintel awintel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just some minor comments.

Comment thread tests/lava/proc/conv/test_models.py Outdated
Comment thread src/lava/proc/conv/process.py Outdated
Comment thread src/lava/proc/conv/process.py Outdated
Comment thread src/lava/proc/conv/process.py Outdated
Comment thread src/lava/proc/conv/utils.py
Comment thread src/lava/proc/conv/models.py
Comment thread src/lava/proc/conv/models.py Outdated
Comment thread src/lava/proc/conv/models.py
Comment thread tests/lava/proc/conv/test_models.py Outdated
Comment thread tests/lava/proc/conv/test_models.py Outdated
@bamsumit bamsumit requested a review from awintel November 19, 2021 00:48
Copy link
Copy Markdown
Contributor

@srrisbud srrisbud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few changes needed. Especially the ReceiveProcess has its ProcessModels flipped.

Comment thread src/lava/proc/conv/process.py Outdated
Comment thread src/lava/proc/conv/utils.py
Comment thread src/lava/proc/conv/utils.py Outdated
Comment thread src/lava/proc/conv/utils.py Outdated
Comment thread src/lava/proc/io/sink.py Outdated
Comment thread src/lava/proc/io/sink.py Outdated
Comment thread src/lava/proc/io/sink.py Outdated
Comment thread src/lava/proc/io/source.py Outdated
Comment thread src/lava/proc/io/source.py Outdated
Comment thread tests/lava/proc/conv/test_models.py
Copy link
Copy Markdown
Contributor

@awintel awintel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some additional comments

Copy link
Copy Markdown
Contributor

@drager-intel drager-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only 2 comments are surrounding unit tests. Can we add some unit tests for the Conv Connection behavior that don't rely on Torch?

Comment thread tests/lava/proc/conv/test_process.py Outdated
Comment thread tests/lava/proc/conv/test_utils.py
Copy link
Copy Markdown
Contributor

@mathisrichter mathisrichter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, Sumit!

  • Not sure whether this is a general convention but elsewhere we use type hints in class, method, and function signatures. Maybe add an issue for that and do it later.

Comment thread src/lava/proc/conv/models.py Outdated
Comment thread src/lava/proc/conv/models.py Outdated
Comment thread src/lava/proc/conv/models.py
Comment thread src/lava/proc/conv/models.py Outdated
Comment thread src/lava/proc/conv/process.py Outdated
Comment thread tests/lava/proc/conv/test_models.py Outdated
Comment thread tests/lava/proc/conv/test_models.py Outdated
Comment thread tests/lava/proc/conv/test_models.py
Comment thread tests/lava/proc/conv/test_utils.py
Comment thread tests/lava/proc/io/test_source_sink.py Outdated
@mgkwill
Copy link
Copy Markdown
Contributor

mgkwill commented Nov 20, 2021

Starting pull request

This is probably clear to some due to internal conversations but the title is not descriptive and I don't see an issue for this pull.

Can we please follow the process, I.E. open an issue that explains the change and have at least a minimal explanation of the work in the pull request?

@bamsumit bamsumit linked an issue Nov 20, 2021 that may be closed by this pull request
Comment thread tests/lava/proc/conv/test_models.py Outdated
@mgkwill mgkwill changed the title Conv clean Conv Process Implementation Nov 21, 2021
Copy link
Copy Markdown
Contributor

@awintel awintel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major except for missing indentation of function arguments that start in a new line. That makes code not very readable.
Could be fixed later but we should not leave it like that.

Copy link
Copy Markdown
Contributor

@drager-intel drager-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding a known input-output unit test of conv behavior for users w/out Torch installed! Looks good!

@srrisbud srrisbud merged commit 89b21f7 into lava-nc:main Nov 24, 2021
@bamsumit bamsumit deleted the conv-clean branch July 22, 2022 13:38
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* Conv process implementation with unittests.

Signed-off-by: bamsumit <[email protected]>

* updated requirements and test inits

Signed-off-by: bamsumit <[email protected]>

* tweak unittests

Signed-off-by: bamsumit <[email protected]>

* fix merge conflict

Signed-off-by: bamsumit <[email protected]>

* Fix to comments, fixed lif warnings, refactored source sink processes and their unittests

Signed-off-by: bamsumit <[email protected]>

* flesh source/sink nomenclature. Fix overflow/underflow bug. Resolved Sudmedh's comments

Signed-off-by: bamsumit <[email protected]>

* New ground truth based conv implementation test

* type hinting fix

Signed-off-by: bamsumit <[email protected]>

* removed unnecessary commented code

Signed-off-by: bamsumit <[email protected]>

* typehinting consistency fix: np.array -> np.ndarray

Signed-off-by: bamsumit <[email protected]>

* static seeds in unittest

Signed-off-by: bamsumit <[email protected]>

* fixes for clean init merge

Signed-off-by: bamsumit <[email protected]>

Co-authored-by: Risbud, Sumedh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conv process implementation

6 participants