docs/source-pytorch/upgrade/sections/2_0_regular.rst
.. list-table:: reg. user 2.0 :widths: 40 40 20 :header-rows: 1
PR18691_self.trainer.model.parameters() in LightningModule.configure_optimizers() when using FSDPself.parameters() from now onPR17309_Trainer(accelerator="tpu", devices=[i])" to select the 1-based TPU core indexPR17227_torch_xla < 1.13torch_xla >= 1.13PR17368_trainer.num_val_batches to get the total size of all validation dataloaderssum(trainer.num_val_batches)PR18441_trainer.num_test_batches to get the total size of all test dataloaderssum(trainer.num_test_batches)PR18441_trainer.num_sanity_val_batches to get the total size of all validation dataloaders for sanity checkingsum(trainer.num_sanity_val_batches)PR18441_Trainer(devices="auto") to auto-select all available GPUs in a Jupyter notebookTrainer(devices=-1)PR18291_Trainer(devices="auto") to auto-select all available GPUs in a Jupyter notebookTrainer(devices=-1)PR18291_pip install lightning to install lightning.app dependenciespip install lightning[app] if you need lightning.appPR18386_.. _pr18691: https://github.com/Lightning-AI/pytorch-lightning/pull/18691 .. _pr16579: https://github.com/Lightning-AI/pytorch-lightning/pull/16579 .. _pr17309: https://github.com/Lightning-AI/pytorch-lightning/pull/17309 .. _pr17227: https://github.com/Lightning-AI/pytorch-lightning/pull/17227 .. _pr17368: https://github.com/Lightning-AI/pytorch-lightning/pull/17368 .. _pr18441: https://github.com/Lightning-AI/pytorch-lightning/pull/18441 .. _pr18291: https://github.com/Lightning-AI/pytorch-lightning/pull/18291 .. _pr18386: https://github.com/Lightning-AI/pytorch-lightning/pull/18386