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

Function float_function

PATH/core/fp16/amp.py:33–35  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

31 return _decorator_helper(fn, utils.maybe_half, wrap_fn)
32
33def float_function(fn):
34 wrap_fn = functools.partial(wrap.make_cast_wrapper, try_caching=False)
35 return _decorator_helper(fn, utils.maybe_float, wrap_fn)
36
37# Registry form
38def register_half_function(module, name):

Callers

nothing calls this directly

Calls 1

_decorator_helperFunction · 0.85

Tested by

no test coverage detected