This was changed in torchvision 0.2.0 to be consistent with other transformations (source 2).
Converting a PIL.Image to a numpy array gives you [H, W, C]. Just a guess, but maybe it’s cleaner to work with height before width?