Does model.eval() & with torch.set_grad_enabled(is_train) have the same effect for grad history?

eval doesn’t turn off history tracking.

4 Likes