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

Function shm_array

unit_tests/server/core/objs/test_shm_array.py:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9@pytest.fixture(scope="module")
10def shm_array():
11 name = "test_shm_array"
12 shape = (10, 10)
13 dtype = np.float32
14 shm = ShmArray(name, shape, dtype)
15 shm.create_shm()
16 yield shm
17 shm.close_shm()
18
19
20def test_create_shm(shm_array):

Callers

nothing calls this directly

Calls 3

create_shmMethod · 0.95
close_shmMethod · 0.95
ShmArrayClass · 0.90

Tested by

no test coverage detected