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>
This commit is contained in:
Jirka Borovec
2020-03-06 21:36:44 +01:00
committed by J. Borovec
co-authored by William Falcon
parent 10311c48b7
commit ff1f8ef400
27 changed files with 286 additions and 93 deletions
@@ -0,0 +1,11 @@
"""
.. warning:: `root_module.root_module` module has been renamed to `core.lightning` since v0.6.0.
The deprecated module name will be removed in v0.8.0.
"""
import warnings
warnings.warn("`root_module.root_module` module has been renamed to `core.lightning` since v0.6.0."
" The deprecated module name will be removed in v0.8.0.", DeprecationWarning)
from pytorch_lightning.core.lightning import * # noqa: F403