mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
cleaned docs, fixed argparse generator (#1075)
* Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Test deprecated API for 0.8.0 and 0.9.0 (#1071) * till 0.8 * refactor * fix tests * fix tests * deprx till 0.9 * Update trainer.py * Apply suggestions from code review Co-authored-by: William Falcon <waf2107@columbia.edu> * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test * updated test Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This commit is contained in:
committed by
J. Borovec
co-authored by
Jirka Borovec
parent
9f140b7698
commit
be89eb07c8
@@ -75,13 +75,15 @@ class TrainerDeprecatedAPITillVer0_8(ABC):
|
||||
@property
|
||||
def nb_sanity_val_steps(self):
|
||||
"""Back compatibility, will be removed in v0.8.0"""
|
||||
warnings.warn("Attribute `nb_sanity_val_steps` has renamed to `num_sanity_val_steps` since v0.5.0"
|
||||
warnings.warn("Attribute `nb_sanity_val_steps` has renamed to "
|
||||
"`num_sanity_val_steps` since v0.5.0"
|
||||
" and this method will be removed in v0.8.0", DeprecationWarning)
|
||||
return self.num_sanity_val_steps
|
||||
|
||||
@nb_sanity_val_steps.setter
|
||||
def nb_sanity_val_steps(self, nb):
|
||||
"""Back compatibility, will be removed in v0.8.0"""
|
||||
warnings.warn("Attribute `nb_sanity_val_steps` has renamed to `num_sanity_val_steps` since v0.5.0"
|
||||
warnings.warn("Attribute `nb_sanity_val_steps` has renamed to "
|
||||
"`num_sanity_val_steps` since v0.5.0"
|
||||
" and this method will be removed in v0.8.0", DeprecationWarning)
|
||||
self.num_sanity_val_steps = nb
|
||||
|
||||
Reference in New Issue
Block a user