What do u mean by training on “different images”? If u mean more images in a single batch, u can concatenate/stack multiple  images together. Pytorch 2d conv expects an input of (B, C, H, W) where B is the batch size. If each images are of shape (1, 1, H, W), u can do tc.cat(IMAGES); if it’s of shape (H, W), u can do tc.stack(IMAGES).unsqueeze_(1).