mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
* Change papi to api * Added try catch for old/new api reference
This commit is contained in:
committed by
William Falcon
parent
e2ee4ddbdb
commit
d1633aac11
@@ -52,7 +52,11 @@ from logging import getLogger
|
||||
try:
|
||||
from comet_ml import Experiment as CometExperiment
|
||||
from comet_ml import OfflineExperiment as CometOfflineExperiment
|
||||
from comet_ml.papi import API
|
||||
try:
|
||||
from comet_ml.api import API
|
||||
except ImportError:
|
||||
# For more information, see: https://www.comet.ml/docs/python-sdk/releases/#release-300
|
||||
from comet_ml.papi import API
|
||||
except ImportError:
|
||||
raise ImportError('Missing comet_ml package.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user