hi thanks for answering but that is not possible im using the same virtual environment running in the IDE and jupyter. I did still checked versions via print(torch.__verison__) and they are the same ‘1.6.0’.
@ptrblck Any other suggestion?
I also have tested the  code (as a jupyte notebook) in google colab and works fine like in my local ipython. the issue is directly with the separeted scripts.