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

Function copy_state_dict_cpu

PATH/core/utils.py:664–668  ·  view source on GitHub ↗
(state_dict)

Source from the content-addressed store, hash-verified

662
663
664def copy_state_dict_cpu(state_dict):
665 new_state = {}
666 for k,v in state_dict.items():
667 new_state[k] = v.cpu()
668 return new_state
669
670def copy_optim_state_dict_cpu(state_dict):
671 new_state = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected