Transfer Learning with Resnet 152

I am following the tutorial here: https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html

What I’m wondering is if I want to output the predictions a model is generating for the validation set to a dataframe how would I go about doing that?

The Visualizing the model prediction gives you an example how to get predictions during the validation or test phase.
Could you describe where you’re currently stuck?