Can anyone help me with this? I think I didn’t explain it with enough information.  I am playing with image captioning here: https://github.com/yunjey/pytorch-tutorial/blob/master/tutorials/03-advanced/image_captioning/ 3
I am trying to see what the results of replacing this line which takes the features from a cnn and instead replace it with a tensor of images that is the same size that are just resized images: https://github.com/yunjey/pytorch-tutorial/blob/master/tutorials/03-advanced/image_captioning/train.py#L69 3
min_transform is just:
mini_transform = transforms.Compose([
    transforms.Scale(40),
    transforms.ToTensor() ])

the tensor of encoder(images) and mini_transform(images) are the same size, but when I pass mini_ts into decoder(mini_ts,captions,lengths)    I get the error about types are not the same.  I think it is because I  build mini_ts with a for loop. Why am I getting this error and how can  I fix it?