-
Notifications
You must be signed in to change notification settings - Fork 54
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
Feature/920: Implemented 2D convolution #1007
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…b.com/helmholtz-analytics/heat into feature920/distributed-2D-convolution
…to feature920/distributed-2D-convolution
heat/core/signal.py
Outdated
if a.shape[0] < v.shape[0] or a.shape[1] < v.shape[1]: | ||
raise ValueError("Filter size must not be greater than the signal size") |
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.
Is this still valid?
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.
yes, when a
is of dimension (4, 15) and v
is of dimension (5, 10)
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.
Maybe a more precise Error message: "Filter size must not be larger in one dimension and smaller in the other" as the user might not be aware of the swapping in case of the filter size beeing larger in both dimensions
34551a7
to
8ccdf3e
Compare
I don't understand @mtar . What spec? Thanks for looking into this btw. |
The issue happens only on the Cuda Runner, likely because of outdated libraries installed by conda. The failure on the amd runner is caused by a device mismatch in ht.convolve[2d] instead. |
Thank you for the PR! |
Thank you for the PR! |
@ClaudiaComito |
This pull request is stale because it has been open for 60 days with no activity. |
Thank you for the PR! |
I cannot reproduce the CUDA problems locally, but even on CPU I run into different problems with mismatching split axes (and local shapes):
(tests run on 2 processes). |
I'm setting this PR to draft and marking it for next Monday's discussion. My thoughts so far (fed from discussions with @mrfh92 in the past):
Options for this PR:
|
This pull request is stale because it has been open for 60 days with no activity. |
Description
Implemented 2D convolution with distributed kernel support.
Issue resolved: #920
skip ci