If you want to freeze a sub-module of an nn.Module object (e.g. you want to freeze some layer of a NN), what’s the difference between:
A) model.layer_to_freeze.eval()
B) model.layer_to_freeze.requires_grad_(False)
?
Thanks