Skip to content

Commit

Permalink
Add forward hook paths explicitly for recent torchdistill vers.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshitomo-matsubara committed Aug 30, 2024
1 parent c701fe7 commit 58c3406
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ train:
wrapper:
requires_grad: False
frozen_modules: []
forward_hook:
input: []
output: ['classifier']
student:
forward_proc: 'forward_batch_as_kwargs'
adaptations:
sequential: []
wrapper:
requires_grad: True
frozen_modules: []
forward_hook:
input: []
output: ['classifier']
optimizer:
key: 'optimizer_no_decay'
kwargs:
Expand Down

0 comments on commit 58c3406

Please sign in to comment.