Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replace register_backward_hook with register_full_backward_hook (#720)
Summary:

register_backward_hook is deprecated.

Differential Revision: D68562558
  • Loading branch information
iden-kalemaj authored and facebook-github-bot committed Jan 27, 2025
commit 47421993495ff602dd6f9034c4f20eade17bb1e5
2 changes: 1 addition & 1 deletion opacus/grad_sample/grad_sample_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def add_hooks(
)

self.autograd_grad_sample_hooks.append(
module.register_backward_hook(
module.register_full_backward_hook(
partial(
self.capture_backprops_hook,
loss_reduction=loss_reduction,
Expand Down
Loading