MCPcopy Create free account
hub / github.com/chenhaoxing/HDNet / _get_params

Function _get_params

util/util.py:106–110  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

104
105def copy_state_dict(cur_state_dict, pre_state_dict, prefix='', load_name=None):
106 def _get_params(key):
107 key = prefix + key
108 if key in pre_state_dict:
109 return pre_state_dict[key]
110 return None
111 for k in cur_state_dict.keys():
112 if load_name is not None:
113 if load_name not in k:

Callers 1

copy_state_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected