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

Function as_inplace

PATH/core/fp16/utils.py:158–160  ·  view source on GitHub ↗
(fns)

Source from the content-addressed store, hash-verified

156 return cast_fn
157
158def as_inplace(fns):
159 for x in fns:
160 yield x + '_'
161
162def has_func(mod, fn):
163 if isinstance(mod, torch.nn.backends.backend.FunctionBackend):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected