mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-02 12:40:09 +08:00
Disable validation when val_percent_check=0 (#1251)
* fix disable validation * add test * update changelog * update docs for val_percent_check * make "fast training" docs consistent
This commit is contained in:
1 parent
e86e6b2faa
commit
2a4cd479e2
4 files changed
+69
-15
No files matched your search
@@ -876,7 +876,8 @@ class Trainer(
|
||||
return
|
||||
|
||||
# check if we should run validation during training
|
||||
self.disable_validation = not self.is_overriden('validation_step') and not self.fast_dev_run
|
||||
self.disable_validation = not (self.is_overriden('validation_step') and self.val_percent_check > 0) \
|
||||
and not self.fast_dev_run
|
||||
|
||||
# run tiny validation (if validation defined)
|
||||
# to make sure program won't crash during val
|
||||
|
||||
Reference in new issue
Block a user