MCPcopy Index your code
hub / github.com/yerfor/GeneFacePlusPlus / run_task

Function run_task

tasks/run.py:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def run_task():
12 assert hparams['task_cls'] != ''
13 pkg = ".".join(hparams["task_cls"].split(".")[:-1])
14 cls_name = hparams["task_cls"].split(".")[-1]
15 task_cls = getattr(importlib.import_module(pkg), cls_name)
16 task_cls.start()
17
18def clear_gpus():
19 devices = os.environ.get('CUDA_VISIBLE_DEVICES', '').split(",")

Callers 1

run.pyFile · 0.85

Calls 1

startMethod · 0.80

Tested by

no test coverage detected