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

Function reset

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

Source from the content-addressed store, hash-verified

155 handle._clear_cache()
156
157def reset():
158 handle = _DECORATOR_HANDLE
159 if handle is None or not handle.is_active():
160 return
161 handle._deactivate()
162 utils.set_func(torch.nn.modules.module.Module, 'half', _ORIGINAL_MODULE_HALF)

Callers

nothing calls this directly

Calls 2

is_activeMethod · 0.80
_deactivateMethod · 0.80

Tested by

no test coverage detected