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

Function _run_exit_handlers

imperative/python/megengine/__init__.py:29–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def _run_exit_handlers():
30 for handler in reversed(_exit_handlers):
31 handler()
32 _exit_handlers.clear()
33
34
35atexit.register(_run_exit_handlers)

Callers 1

_exitFunction · 0.85

Calls 2

handlerFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected