-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
SyncBatchNorm doesn't support 2 dimensions input? #194
Comments
@jjsjann123 have you observed this? |
yeah, this is an overlook for my side. I'll patch it soon |
Thanks very much. Hope for reply once fixed! |
I'll update on this thread once it's fixed, should be sometime this week (Currently occupied by some other work) |
I'm facing the same issue, hoping you guys can fix this soon..... many thanks! |
The support should be really easy as we already have channel_last kernels there, that handles the same data stride as with 2 dimensional tensor. |
supporting 2 dimensional input, resolving issue #194 Implementation: for 2d input, switching channel_last flag to true for better memory access pattern in the kernel.
@flymark2010 Sorry for the long wait for such a simple fix (priority issue on my side :/ ) |
supporting 2 dimensional input, resolving issue #194 Implementation: for 2d input, switching channel_last flag to true for better memory access pattern in the kernel.
Should be fixed via 0a99154. |
Thanks a lot for reporting this @hiyijian. I should have done a better job unit testing this. Any chance I can have a repro? If it's something not related to 2-dimension tensor, maybe we want to have a new issue and tag me on that one :) |
Hello, I'm confused with the same problem. import torch Traceback (most recent call last): |
same error |
@zhuyingSeu a workaround is using python-fallback version |
Same error, and when try to use python-fallback, get another error.
|
Oops, somehow missed this thread, let me take a look at this. |
It was broken by me earlier at #275 https://github.com/NVIDIA/apex/pull/275/files#diff-f22c2ebe466a49fc0a46a5e7fabb2004R74-R85 🤦♂️ Will push a fix shortly |
PR issued #590 |
It works! Thank you. |
Glad to help and thanks for reporting the issue! |
Hi,
I'm facing the issue that the program crash when the input for SyncBatchNorm is two dimensions. Here's the code:
When running the code, error raised like this:
And everthing runs ok when
data
a 4 dims tensor.Here is my environment:
The text was updated successfully, but these errors were encountered: