Could you please provide the shapes of:


The actual network input (i.e. I think this will be X[key].shape) (generally speaking its a good idea to follow the PyTorch convention of [Batch_size,Channels,Height,Width] so [1,1,50,50] here for your example I think)


The target label shape (an actual printout (so Y[key].shape)


The network output shape (output.shape).


Might help if we can see explicit print function outputs that’s all