MCPcopy
hub / github.com/ModelTC/LightLLM / read_shm

Function read_shm

lightllm/server/embed_cache/utils.py:38–41  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

36
37
38def read_shm(name):
39 shared_memory = shm.SharedMemory(name=name)
40 data = shared_memory.buf.tobytes()
41 return data
42
43
44def free_shm(name):

Callers 12

encodeMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
context_forwardMethod · 0.90
load_imageMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
encodeMethod · 0.90
context_forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected