MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / _clear_cache

Function _clear_cache

PATH/core/fp16/amp.py:151–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 return handle
150
151def _clear_cache():
152 handle = _DECORATOR_HANDLE
153 if handle is None or not handle.is_active():
154 return
155 handle._clear_cache()
156
157def reset():
158 handle = _DECORATOR_HANDLE

Callers

nothing calls this directly

Calls 2

is_activeMethod · 0.80
_clear_cacheMethod · 0.80

Tested by

no test coverage detected