Skip to content

Commit 5a5b616

Browse files
Explicitly mention disabling validation in trainer docs (Lightning-AI#13148)
Co-authored-by: Akihiro Nitta <[email protected]>
1 parent 3c5a8a8 commit 5a5b616

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/common/trainer.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,9 @@ Useful when debugging or testing something that happens at the end of an epoch.
850850
# run for only 10 batches
851851
trainer = Trainer(limit_val_batches=10)
852852

853+
# disable validation
854+
trainer = Trainer(limit_val_batches=0)
855+
853856
In the case of multiple validation dataloaders, the limit applies to each dataloader individually.
854857

855858
log_every_n_steps

0 commit comments

Comments
 (0)