@kirk86 You should ideally provide the image in the order (H, W, C to PIL for resizing(and not as <C, H, W> as you have provided above, hence the error). You can later transpose the tensor to get the shape = (N, C, H, W).
P.S: If you need the input image to be of shape (3, 32, 32), you can use your own code
train_set.data = train_set.data.repeat(1, 3, 1, 1) to repeat the grayscale data along RGB channels(after the resize). I don’t think  nn.Conv2d is the right way to do this.