Skip to content
Snippets Groups Projects
Verified Commit 00d340f3 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

check if mlflow is available at runtime

parent e9f6b6d5
No related branches found
No related tags found
1 merge request!60Resume from existing mlflow run
......@@ -23,6 +23,11 @@ from tqdm import tqdm
from dan.manager.metrics import MetricManager
from dan.ocr.utils import LM_ind_to_str
from dan.schedulers import DropoutScheduler
try:
import mlflow
from dan.mlflow import logging_metrics, logging_tags_metrics
except ImportError:
pass
try:
import mlflow
......
......@@ -28,13 +28,6 @@ try:
except ImportError:
MLFLOW = False
try:
import mlflow
MLFLOW = True
logger.info("MLflow Logging available.")
except ImportError:
MLFLOW = False
logger = logging.getLogger(__name__)
......
......@@ -23,7 +23,10 @@ class MLflowNotInstalled(Exception):
Raised when MLflow logging was requested but the module was not installed
"""
<<<<<<< HEAD
=======
>>>>>>> bf9cf44 (check if mlflow is available at runtime)
def randint(low, high):
"""
call torch.randint to preserve random among dataloader workers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment