MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / run_task

Function run_task

tasks/run.py:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def run_task():
6 assert hparams['task_cls'] != ''
7 pkg = ".".join(hparams["task_cls"].split(".")[:-1])
8 cls_name = hparams["task_cls"].split(".")[-1]
9 task_cls = getattr(importlib.import_module(pkg), cls_name)
10 task_cls.start()
11
12
13if __name__ == '__main__':

Callers 1

run.pyFile · 0.85

Calls 1

startMethod · 0.80

Tested by

no test coverage detected