Sorry, I did not understand what you have said, I need to unsqueeze what exactly ? I have tested other loss functions and again, it works fine. I have set the epochs to 102 and I receive the same error, here’s my notebook 4, I had need to put the notebook on Google Colab for memory reasons, so this is a very simular version of the current notebook.