MCPcopy Create free account
hub / github.com/Comfy-Org/ComfyUI / submit

Method submit

comfy/multigpu.py:62–63  ·  view source on GitHub ↗
(self, device: torch.device, fn, *args, **kwargs)

Source from the content-addressed store, hash-verified

60 result_q.put((None, e))
61
62 def submit(self, device: torch.device, fn, *args, **kwargs):
63 self._work_queues[device].put((fn, args, kwargs))
64
65 def get_result(self, device: torch.device):
66 return self._result_queues[device].get()

Callers 2

run_async_in_threadMethod · 0.80

Calls 1

putMethod · 0.80

Tested by

no test coverage detected