MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _clear_plasma_store

Function _clear_plasma_store

imperative/python/megengine/data/tools/_queue.py:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def _clear_plasma_store():
28 # `_PlasmaStoreManager.__del__` will not be called automaticly in subprocess,
29 # so this function should be called explicitly
30 global MGE_PLASMA_STORE_MANAGER
31 if MGE_PLASMA_STORE_MANAGER is not None and MGE_PLASMA_STORE_MANAGER.refcount == 0:
32 del MGE_PLASMA_STORE_MANAGER
33 MGE_PLASMA_STORE_MANAGER = None
34
35
36class _ExceptionWrapper:

Callers 1

closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected