Solved by ptrblck in post #2 
              
              
                PyTorch expects inputs as [batch_size, channels, height, width] for the “usual” layers in CNNs. 
If you want to visualize numpy arrays via e.g. matplotlib, then you should remove the batch dimension and permute the array to a channels-last format. 
However, this is matplotlib specific and other visu…