Nope. I feel this is connected to this issue in windows : https://serverfault.com/questions/314194/why-does-windows-command-prompt-stalls-until-a-key-is-pressed-when-executing-lon 19. I have implemented the solution given in that. Also I am updating the pytorch to latest and will check whether this is happening again.