examples/research_projects/seq2seq-distillation/utils.py/freeze_params
def freeze_params(model: nn.Module):
    """Set requires_grad=False for each of model.parameters()"""
    for par in model.parameters():
        par.requires_grad = False