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: Using a non-full backward hook when the forward contains multiple autograd Nodes is deprecated and will be removed in future versions. This hook will be missing some grad_input. Please use register_full_backward_hook to get the documented behavior. #10

Open
slerman12 opened this issue Jan 1, 2021 · 3 comments

Comments

@slerman12
Copy link

Getting this warning:

UserWarning: Using a non-full backward hook when the forward contains multiple autograd Nodes is deprecated and will be removed in future versions. This hook will be missing some grad_input. Please use register_full_backward_hook to get the documented behavior.

@bhattg
Copy link

bhattg commented Mar 16, 2021

Hey can you describe more about this issue? I am also getting the same

@optimass
Copy link

same

@v-liuwei
Copy link

v-liuwei commented Mar 6, 2022

As said by the official documents,

This function(register_backward_hook()) is deprecated in favor of register_full_backward_hook() and the behavior of this function will change in future versions.

So just replace register_backward_hook() with register_full_backward_hook() in autograd_hacks.py at line 56.

handles.append(layer.register_backward_hook(_capture_backprops))

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

4 participants