From 897def2cac83e7ad194c27005e6eaad9cc9a75bc Mon Sep 17 00:00:00 2001 From: Tullie Murrell Date: Fri, 21 Feb 2020 10:18:27 -0800 Subject: [PATCH] Fix backwards compatibility for optional logging dependencies (#900) --- pytorch_lightning/logging/__init__.py | 1 + pytorch_lightning/logging/comet.py | 5 +++++ pytorch_lightning/logging/mlflow.py | 5 +++++ pytorch_lightning/logging/neptune.py | 5 +++++ pytorch_lightning/logging/test_tube.py | 5 +++++ pytorch_lightning/logging/wandb.py | 5 +++++ 6 files changed, 26 insertions(+) create mode 100644 pytorch_lightning/logging/comet.py create mode 100644 pytorch_lightning/logging/mlflow.py create mode 100644 pytorch_lightning/logging/neptune.py create mode 100644 pytorch_lightning/logging/test_tube.py create mode 100644 pytorch_lightning/logging/wandb.py diff --git a/pytorch_lightning/logging/__init__.py b/pytorch_lightning/logging/__init__.py index e57c0811..69c451eb 100644 --- a/pytorch_lightning/logging/__init__.py +++ b/pytorch_lightning/logging/__init__.py @@ -9,3 +9,4 @@ warnings.warn("`logging` package has been renamed to `loggers` since v0.6.1" " The deprecated package name will be removed in v0.8.0.", DeprecationWarning) from pytorch_lightning.loggers import * # noqa: F403 +from pytorch_lightning.loggers import base, tensorboard # noqa: F403 diff --git a/pytorch_lightning/logging/comet.py b/pytorch_lightning/logging/comet.py new file mode 100644 index 00000000..3961fcde --- /dev/null +++ b/pytorch_lightning/logging/comet.py @@ -0,0 +1,5 @@ +""" +.. warning:: `logging` package has been renamed to `loggers` since v0.6.1 and will be removed in v0.8.0 +""" + +from pytorch_lightning.loggers import comet # noqa: F403 diff --git a/pytorch_lightning/logging/mlflow.py b/pytorch_lightning/logging/mlflow.py new file mode 100644 index 00000000..70ab7359 --- /dev/null +++ b/pytorch_lightning/logging/mlflow.py @@ -0,0 +1,5 @@ +""" +.. warning:: `logging` package has been renamed to `loggers` since v0.6.1 and will be removed in v0.8.0 +""" + +from pytorch_lightning.loggers import mlflow # noqa: F403 diff --git a/pytorch_lightning/logging/neptune.py b/pytorch_lightning/logging/neptune.py new file mode 100644 index 00000000..0f5a73d5 --- /dev/null +++ b/pytorch_lightning/logging/neptune.py @@ -0,0 +1,5 @@ +""" +.. warning:: `logging` package has been renamed to `loggers` since v0.6.1 and will be removed in v0.8.0 +""" + +from pytorch_lightning.loggers import neptune # noqa: F403 diff --git a/pytorch_lightning/logging/test_tube.py b/pytorch_lightning/logging/test_tube.py new file mode 100644 index 00000000..a821a433 --- /dev/null +++ b/pytorch_lightning/logging/test_tube.py @@ -0,0 +1,5 @@ +""" +.. warning:: `logging` package has been renamed to `loggers` since v0.6.1 and will be removed in v0.8.0 +""" + +from pytorch_lightning.loggers import test_tube # noqa: F403 diff --git a/pytorch_lightning/logging/wandb.py b/pytorch_lightning/logging/wandb.py new file mode 100644 index 00000000..b0a96d2f --- /dev/null +++ b/pytorch_lightning/logging/wandb.py @@ -0,0 +1,5 @@ +""" +.. warning:: `logging` package has been renamed to `loggers` since v0.6.1 and will be removed in v0.8.0 +""" + +from pytorch_lightning.loggers import wandb # noqa: F403