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

Function map_func_cuda

PATH/core/utils.py:141–142  ·  view source on GitHub ↗
(storage, location)

Source from the content-addressed store, hash-verified

139def load_state(path, model, ignore=[], optimizer=None, cuda=False, recover=False,
140 remove_prefix=None, strict=False):
141 def map_func_cuda(storage, location):
142 return storage.cuda()
143 def map_func_cpu(storage, location):
144 return storage.cpu()
145 if cuda:

Callers

nothing calls this directly

Calls 1

cudaMethod · 0.45

Tested by

no test coverage detected