Solved by Nikronic in post #7 
              
              
                About image size, you can load images channel-first. PyTorch uses channel-first by default or you can convert your code to accept channel-last tensors. 
The reason I considered (1, 3, 136, 136) is that probably you are using batch operations. So you can aggregate let’s say 1000 images in one tensor (…