MCPcopy Create free account
hub / github.com/FunAudioLLM/ThinkSound / copy_state_dict

Function copy_state_dict

ThinkSound/models/utils.py:167–200  ·  view source on GitHub ↗

Load state_dict to model, but only for keys that match exactly. Args: model (nn.Module): model to load state_dict. state_dict (OrderedDict): state_dict to load.

(model, state_dict)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

mainFunction · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls 1

load_state_dictMethod · 0.45

Tested by

no test coverage detected