I’m making progress towards solving this issue. I’ve pinpointed the cause of the problem to the inputs I give the network. If I train with random tensors, generated with torch.rand(), it takes 2 seconds to train on a batch of 32 elements.
I have to check what I’m doing wrong in the Dataset. It is still very strange since I followed the tutorial linked above