I use the Pytorch library and i'm looking for a way to make the weights and biases in my model to freeze.
I saw these 2 options:
model.train(False)for param in model.parameters(): param.requires_grad = False
What is the difference (if there is any) and which one should i use to freeze the current state of my model?