Solved by albanD in post #3 
              
              
                There is no difference. 
Just that one takes a bool as input and not the other. 
Also  torch.set_grad_enabled(False) can be used as just a function to set the grad mode forever.