MCPcopy Create free account
hub / github.com/InternLM/lmdeploy / set

Method set

lmdeploy/pytorch/engine/engine_loop.py:66–71  ·  view source on GitHub ↗

Set event.

(self)

Source from the content-addressed store, hash-verified

64 await self.event.wait()
65
66 def set(self):
67 """Set event."""
68 if self.scheduler.has_unfinished():
69 self.event.set()
70 else:
71 self.event.clear()
72
73
74def build_runable_event(scheduler: 'Scheduler'):

Callers

nothing calls this directly

Calls 3

has_unfinishedMethod · 0.80
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected