Skip to content
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

Warnings will be given when i using DDP training #67

Open
cspup opened this issue Mar 6, 2023 · 1 comment
Open

Warnings will be given when i using DDP training #67

cspup opened this issue Mar 6, 2023 · 1 comment

Comments

@cspup
Copy link

cspup commented Mar 6, 2023

I added the ECA module to my model , but when I used DDP training i got a warning:
UserWarning: Grad strides do not match bucket view strides.
This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed.
This is not an error, but may impair performance.
grad.sizes() = [2, 1, 3], strides() = [3, 1, 1]
bucket_view.sizes() = [2, 1, 3], strides() = [3, 3, 1]

I found that it was caused by conv1d in ECA, but i can't fix this warning.
Anyone can tell me how to fix this problem?

@hefangnan
Copy link

Hi,Did you resolve this problem? I also encountered this problem when I use DDP.

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

No branches or pull requests

2 participants