title: Differences in image dimensions from cv2 (python) and torch/image (libpng)
body: <p>I use cv2.imread and cv2.imdecode depending on if I am loading an image from disk or from url. Comparatively, I use image.load to load from disk, which utilizes libpng. When using cv2, my image.shape outputs with (height, width, channels). However when using torch, the shape is (channels, height, width).</p>
  
  <p>I am curious as to why this is and how I can get the two to equate. My goal is to combine many images, downloaded with cv2, into a torch tensor utilizing the (channels, height, width) dimensions. I have tried to reshape the numpy arrays when downloaded with cv2 but the tensors do not match those downloaded with torch. </p>