mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Add new API backward compatibility support
This commit is contained in:
parent
e7f1e3de86
commit
c3eb5fd8b0
@ -12,7 +12,7 @@ from .backend_interface.task.development.worker import DevWorker
|
|||||||
from .backend_interface.task.log import TaskHandler
|
from .backend_interface.task.log import TaskHandler
|
||||||
from .storage import StorageHelper
|
from .storage import StorageHelper
|
||||||
from .utilities.plotly_reporter import SeriesInfo
|
from .utilities.plotly_reporter import SeriesInfo
|
||||||
from .backend_interface import TaskStatusEnum
|
from .backend_api.services import tasks
|
||||||
from .backend_interface.task import Task as _Task
|
from .backend_interface.task import Task as _Task
|
||||||
from .config import running_remotely, get_cache_dir
|
from .config import running_remotely, get_cache_dir
|
||||||
|
|
||||||
@ -605,7 +605,7 @@ class Logger(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def _start_task_if_needed(self):
|
def _start_task_if_needed(self):
|
||||||
if self._task._status == TaskStatusEnum.created:
|
if self._task._status == tasks.TaskStatusEnum.created:
|
||||||
self._task.mark_started()
|
self._task.mark_started()
|
||||||
|
|
||||||
self._task._dev_mode_task_start()
|
self._task._dev_mode_task_start()
|
||||||
|
@ -16,7 +16,7 @@ from .debugging.log import get_logger
|
|||||||
from .storage import StorageHelper
|
from .storage import StorageHelper
|
||||||
from .utilities.enum import Options
|
from .utilities.enum import Options
|
||||||
from .backend_interface import Task as _Task
|
from .backend_interface import Task as _Task
|
||||||
from .backend_interface.model import Model as _Model, DummyModel as _DummyModel
|
from .backend_interface.model import create_dummy_model, Model as _Model
|
||||||
from .config import running_remotely, get_cache_dir
|
from .config import running_remotely, get_cache_dir
|
||||||
|
|
||||||
ARCHIVED_TAG = "archived"
|
ARCHIVED_TAG = "archived"
|
||||||
@ -643,7 +643,7 @@ class OutputModel(BaseModel):
|
|||||||
|
|
||||||
self._model_local_filename = None
|
self._model_local_filename = None
|
||||||
self._base_model = None
|
self._base_model = None
|
||||||
self._floating_data = _DummyModel(
|
self._floating_data = create_dummy_model(
|
||||||
design=_Model._wrap_design(config_text),
|
design=_Model._wrap_design(config_text),
|
||||||
labels=label_enumeration or task.get_labels_enumeration(),
|
labels=label_enumeration or task.get_labels_enumeration(),
|
||||||
name=name,
|
name=name,
|
||||||
|
Loading…
Reference in New Issue
Block a user