moved COMET_DISABLE_AUTO_LOGGING out of modeule for flake8 compliance (#410)
* moved COMET_DISABLE_AUTO_LOGGING out of modeule for flake8 compliance * Update __init__.py
This commit is contained in:
parent
2b82fe0fb7
commit
2924ebeda5
|
@ -1,3 +1,4 @@
|
|||
from os import environ
|
||||
from .base import LightningLoggerBase, rank_zero_only
|
||||
|
||||
try:
|
||||
|
@ -10,5 +11,8 @@ except ModuleNotFoundError:
|
|||
pass
|
||||
try:
|
||||
from .comet_logger import CometLogger
|
||||
|
||||
# needed to prevent ImportError and duplicated logs.
|
||||
environ["COMET_DISABLE_AUTO_LOGGING"] = "1"
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
|
|
@ -4,9 +4,6 @@ from comet_ml import Experiment as CometExperiment
|
|||
|
||||
from .base import LightningLoggerBase, rank_zero_only
|
||||
|
||||
# needed to prevent ImportError and duplicated logs.
|
||||
environ["COMET_DISABLE_AUTO_LOGGING"] = "1"
|
||||
|
||||
|
||||
class CometLogger(LightningLoggerBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue