Skip to content

Instantly share code, notes, and snippets.

@zilunpeng
Created March 23, 2021 21:15
Show Gist options
  • Save zilunpeng/5ae5ce2eb8cab1a634ef4d6ff06ce00f to your computer and use it in GitHub Desktop.
Save zilunpeng/5ae5ce2eb8cab1a634ef4d6ff06ce00f to your computer and use it in GitHub Desktop.
Set the teacher model to evaluation mode. Code below is part of the knowledge distillation toolkit (https://git.io/JYePf).
self.teacher_model.eval()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment