self.write_prediction in LightningModule. It’s not documented yet.
self.write_prediction
LightningModule