-
Notifications
You must be signed in to change notification settings - Fork 223
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
export/import_nir__Adding-Conv2D_and_AvgPool2d #305
export/import_nir__Adding-Conv2D_and_AvgPool2d #305
Conversation
SirineArfa
commented
Mar 25, 2024
- fixes Missing Conv2D and AveragePooling2D modules in export/import to NIR #304
- Adding support for the following torch.nn modules [Conv2d, AvgPool2d and Flatten] to export_nir.py and import_nir.py
- Create example notebook in examples/tutorial_snntorch_to_nir.ipynb for snntorch model with layers [Conv2d, AvgPool2d,LIF, Linear,LIF] and export/import it to NIR
- Include this model's tests in tests/test_nir.py
|
Yep, this would be really practical to have (pls review) :) |
There are a couple of conflicts in
|
Conflicts in |
The tests haven't passed as there is now a dependency on |
The |
Thank you! I ran the tests and it oddly worked with 3.9/3.10, but it didn't work on Python 3.8. I'm not totally sure why this wouldn't be compatible with 3.8... @stevenabreu7 : have you observed anything like this among the other libraries? I would rather not eliminate compatibility with 3.8 over this, but a non-ideal option is to modify the test if we're not sure why this error persists. |
I checked the NIR repo and in the |
thanks for checking that. Yep, let's remove Python 3.8 from the test matrix. I tried to commit to your fork but I don't have the necessary permissions. All that needs to be changed are the following files:
If you update those, the tests should pass and I'll merge the PR. |
I removed python 3.8 dependencies from the appointed files. |