Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/InternLM/lmdeploy
/ set
Method
set
lmdeploy/pytorch/engine/engine_loop.py:43–47 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
41
self._counter = 0
42
43
def
set(self):
44
if
self._counter > 0:
45
self._counter -= 1
46
if
self._counter == 0:
47
super().set()
48
49
def
clear(self):
50
if
self._counter == 0 and super().is_set():
Callers
15
request_handle
Method · 0.45
record_schedule
Method · 0.45
record_specdecode
Method · 0.45
conn_worker
Method · 0.45
wait_for_conn
Method · 0.45
connect
Method · 0.45
set
Method · 0.45
__init__
Method · 0.45
preprocess_loop
Method · 0.45
drain_for_sleep
Method · 0.45
resume_from_sleep
Method · 0.45
main_loop
Method · 0.45
Calls
no outgoing calls
Tested by
9
reject_request
Method · 0.36
response
Method · 0.36
_startup
Method · 0.36
_async_test_mp_async_end_waits_for_stream_init_after_cancel
Function · 0.36
_async_test_zmq_get_stream_output_after_drop_is_idempotent
Function · 0.36
_collective_rpc_async
Method · 0.36
_async_test_ray_stream_startup_cancel_drops_remote_stream
Function · 0.36
_async_test_ray_get_stream_task_result_after_drop_is_idempotent
Function · 0.36
result_generator
Function · 0.36