docs/source-pytorch/upgrade/sections/1_4_regular.rst
.. list-table:: reg. user 1.4 :widths: 40 40 20 :header-rows: 1
outputs in your LightningModule.on_train_epoch_end or Callback.on_train_epoch_end hookson_train_epoch_end or set outputs as attributes in your LightningModule instances and access them from the hookPR7339_Trainer.truncated_bptt_stepsPR7323_LightningModule.write_predictions and LightningModule.write_predictions_dictpredict_step and Trainer.predict + callbacks to write out predictionsPR7066_period argument to the ModelCheckpoint callbackevery_n_epochs argument to the ModelCheckpoint callbackPR6146_output_filename argument to Profilerdirpath and filename, that is Profiler(dirpath=...., filename=...)PR6621_profiled_functions argument in PytorchProfilerrecord_functions argumentPR6349_@auto_move_data decorator to use the LightningModule outside of the Trainer for inferenceTrainer.predictPR6993_on_load_checkpoint with a checkpoint only argument, as in Callback.on_load_checkpoint(checkpoint)pl_module and trainer, as in Callback.on_load_checkpoint(trainer, pl_module, checkpoint)PR7253_pl.metricstorchmetricstorchmetrics_datamodule attribute of LightningModule, that is model.datamoduleTrainer.datamodule, that is model.trainer.datamodulePR7168_.. _torchmetrics: https://torchmetrics.readthedocs.io/en/stable .. _pr7339: https://github.com/Lightning-AI/pytorch-lightning/pull/7339 .. _pr7323: https://github.com/Lightning-AI/pytorch-lightning/pull/7323 .. _pr7066: https://github.com/Lightning-AI/pytorch-lightning/pull/7066 .. _pr6146: https://github.com/Lightning-AI/pytorch-lightning/pull/6146 .. _pr6621: https://github.com/Lightning-AI/pytorch-lightning/pull/6621 .. _pr6349: https://github.com/Lightning-AI/pytorch-lightning/pull/6349 .. _pr6993: https://github.com/Lightning-AI/pytorch-lightning/pull/6993 .. _pr7253: https://github.com/Lightning-AI/pytorch-lightning/pull/7253 .. _pr7168: https://github.com/Lightning-AI/pytorch-lightning/pull/7168