-
Notifications
You must be signed in to change notification settings - Fork 440
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
Implement 3D and transposed 3D convolutions. #1945
Conversation
ba5eebd
to
06bc6f2
Compare
Super cool! Also I am glad you have added ONNX for Conv3d and implemented new ModuleDisplay! I can review the PR but @nathanielsimard, @laggui and @louisfd are more qualified. |
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.
Looking good on my end!
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.
I checked the import parts and they look good.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1945 +/- ##
==========================================
+ Coverage 85.04% 85.40% +0.36%
==========================================
Files 793 805 +12
Lines 94600 99248 +4648
==========================================
+ Hits 80449 84760 +4311
- Misses 14151 14488 +337 ☔ View full report in Codecov by Sentry. |
Can we add a couple check boxes under: Conv3d and ConvTranspose3d in https://github.com/tracel-ai/burn/blob/main/crates/burn-import/SUPPORTED-ONNX-OPS.md? Folks would be happy to see we now support Conv2d and ConvTranspose3d! |
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.
Looked over the ONNX import, everything looks good! 👍
Thanks for adding conv3d 🙏
@@ -72,10 +72,19 @@ name = "conv-transpose2d" | |||
path = "benches/conv_transpose2d.rs" | |||
harness = false | |||
|
|||
[[bench]] |
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.
Nice! We even have a benchmark available 🔥
match key.as_str() { | ||
"kernel_shape" => kernel_shape = value.clone().into_i64s(), | ||
"strides" => strides = value.clone().into_i64s(), | ||
"pads" => pads = value.clone().into_i64s(), |
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.
Just realized we don't parse the auto_pad
attribute (mutually exclusive) but that applies to all conv so no worries we can keep it as the current limitation. Don't think it's used that much.
Great! Thank you all for your very positive reviews! |
Before we merge could you update the SUPPORTED-ONNX-OPS.md file to reflect the new conv3d (as pointed out by @antimora)? Thank you! |
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.
LGTM
A test is failing after a recent Async merge: Since this is not related to this PR changes, @nathanielsimard @louisfd @laggui , how should we go about this? |
The issue has been fixed on main. Pretty sure the tests were all passing before the rebase so we could probably just merge, but if not sure then the fix could be merged before running the tests. |
* Implement 3D and transposed 3D convolutions. * Merge changes from onnx-ir tracel-ai#1921 pr
* Implement 3D and transposed 3D convolutions. * Merge changes from onnx-ir tracel-ai#1921 pr
* Implement 3D and transposed 3D convolutions. * Merge changes from onnx-ir #1921 pr --------- Co-authored-by: Dilshod Tadjibaev <939125+antimora@users.noreply.github.com>
* Implement 3D and transposed 3D convolutions. * Merge changes from onnx-ir #1921 pr --------- Co-authored-by: Dilshod Tadjibaev <939125+antimora@users.noreply.github.com>
This reverts commit d696d74.
This reverts commit d696d74.
This reverts commit b8b47ea.
Hi!
Please review this PR carefully, I started working both on neural networks and this crate only 4 days ago.
I hope there are no major mistakes.
Checklist
run-checks all
script has been executed.Related Issues/PRs
Fixes #1278: Conv3d feature request
Changes
Implement 3D and 3D transposed convolutions for all the supported backends.