mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
add rank warning (#1428)
* add rank warning * changelog * use rank_zero_warn * user trainer_init * replace warnings * fix test * flake8 * docs * changelog * bug lol
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
The deprecated package name will be removed in v0.9.0.
|
||||
"""
|
||||
|
||||
import warnings
|
||||
from pytorch_lightning.utilities import rank_zero_warn
|
||||
|
||||
warnings.warn("`logging` package has been renamed to `loggers` since v0.7.0"
|
||||
" The deprecated package name will be removed in v0.9.0.", DeprecationWarning)
|
||||
rank_zero_warn("`logging` package has been renamed to `loggers` since v0.7.0"
|
||||
" The deprecated package name will be removed in v0.9.0.", DeprecationWarning)
|
||||
|
||||
from pytorch_lightning.loggers import * # noqa: F403
|
||||
from pytorch_lightning.loggers import base, tensorboard # noqa: F403
|
||||
|
||||
Reference in New Issue
Block a user