How to perform one round of inference before the training starts?

I would like to perform one round of inference on the training data before the actual training starts. What is the easiest and optimal way to do that?