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

Method _save_func

PATH/core/fp16/amp.py:80–81  ·  view source on GitHub ↗
(self, mod, fn, func)

Source from the content-addressed store, hash-verified

78
79 # Experimental support for saving / restoring uncasted versions of functions
80 def _save_func(self, mod, fn, func):
81 self._all_wrappers.append((mod, fn, func))
82
83 def _deactivate(self):
84 for mod, fn, func in self._all_wrappers:

Callers 1

set_func_saveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected