Skip to content

Commit a9c8e84

Browse files
iden-kalemajfacebook-github-bot
authored andcommitted
Replace register_backward_hook with register_full_backward_hook
Summary: register_backward_hook is deprecated. Differential Revision: D68562558
1 parent ea4cb95 commit a9c8e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opacus/grad_sample/grad_sample_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def add_hooks(
207207
)
208208

209209
self.autograd_grad_sample_hooks.append(
210-
module.register_backward_hook(
210+
module.register_full_backward_hook(
211211
partial(
212212
self.capture_backprops_hook,
213213
loss_reduction=loss_reduction,

0 commit comments

Comments
 (0)