How to save predictions for each epoch by Trainer?

During training, I make prediction and evaluate my model at the end of each epoch. I want to save the prediction results every time I evaluate my model. How to achieve this using Trainer?

Thanks a lot!

Anyone can help? Even a few simple instructions would be much appreciated!