Skip to content

Commit 4742199

Browse files
iden-kalemajfacebook-github-bot
authored andcommitted
Replace register_backward_hook with register_full_backward_hook (#720)
Summary: register_backward_hook is deprecated. Differential Revision: D68562558
1 parent c7d6144 commit 4742199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opacus/grad_sample/grad_sample_module.py

+1-1
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)