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:
Adrian Wälchli authored and GitHub committed 2020-03-27 02:07:22 +00:00
1 parent e86e6b2faa
commit 2a4cd479e2
4 files changed
+69 -15

No files matched your search

+2 -1
View File
@@ -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