def METHOD_NAME(self):
    if not self.validation_step_outputs:
        return
    self.log("val_loss", torch.stack(self.validation_step_outputs).mean(), sync_dist=True)
    self.validation_step_outputs.clear()  # free memory