Skip to content

Commit

Permalink
[Improvement]
Browse files Browse the repository at this point in the history
Init teacher weight by default
  • Loading branch information
twmht committed Feb 7, 2023
1 parent a27952d commit 9d65b9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def __init__(self,
f'{type(teacher)}')

self.teacher = teacher
self.teacher.init_weights()
if teacher_ckpt:
# avoid loaded parameters be overwritten
self.teacher.init_weights()
_ = load_checkpoint(self.teacher, teacher_ckpt)
self.teacher_trainable = teacher_trainable
if not self.teacher_trainable:
Expand Down

0 comments on commit 9d65b9a

Please sign in to comment.