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

UserWarning: Grad strides do not match bucket view strides #8

Open
LeoXinhaoLee opened this issue Jun 4, 2023 · 0 comments
Open

UserWarning: Grad strides do not match bucket view strides #8

LeoXinhaoLee opened this issue Jun 4, 2023 · 0 comments

Comments

@LeoXinhaoLee
Copy link

LeoXinhaoLee commented Jun 4, 2023

Hi, thank you very much for releasing code for this inspiring work! When I try to run the code of the RGBD part, though the code is totally runnable, I encounter this warning at the beginning of training:

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() = [1, 64], strides() = [1, 1]
bucket_view.sizes() = [1, 64], strides() = [64, 1] (Triggered internally at ../torch/csrc/distributed/c10d/reducer.cpp:323.)
  Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass

I'm wondering what could be the cause of it and if it will really have any influence on performance. Thank you very much for your time and help!

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

1 participant