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

Method _disable_casts

PATH/core/fp16/amp.py:71–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70 @contextlib.contextmanager
71 def _disable_casts(self):
72 self._is_active = False
73 yield
74 self._is_active = True
75
76 def _clear_cache(self):
77 self._cache.clear()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected