I am getting strange KeyboardInterrupt errors when debugging a PyTorch project with PyCharm. Below is the kind of error I am getting:

DeepinScreenshot_select-area_20190318152448.png1001×445 67.3 KB

This only happens when I debug, the code is running fine otherwise. I am using the following wersion of PyCharm:

Did anyone experience anything similar before? Any tip will help, thank you!