Solved by ptrblck in post #2 
              
              
                Could you print the shape of toImg? 
The standard size for vgg16 is [batch_size, 3, 224, 224]. 
Also, you shouldn’t use model.forward as this might yield strange behavior, if you want to use hooks. 
Just call the model directly: output = model(toImg).