Helper for launch the task.
(task, type, tokens)
| 137 | |
| 138 | |
| 139 | def submit(task, type, tokens): |
| 140 | """Helper for launch the task.""" |
| 141 | task = TASKS.build(dict(cfg=task, type=type)) |
| 142 | tqdm.write(f'Launch {task.name} on CPU ') |
| 143 | |
| 144 | res = launch(task, tokens) |
| 145 | return res |
| 146 | |
| 147 | |
| 148 | @RUNNERS.register_module() |