MCPcopy Index your code
hub / github.com/huggingface/diffusers / add_state_dict

Function add_state_dict

scripts/convert_consistency_decoder.py:1050–1052  ·  view source on GitHub ↗
(prefix, mod)

Source from the content-addressed store, hash-verified

1048
1049
1050def add_state_dict(prefix, mod):
1051 for k, v in mod.state_dict().items():
1052 unet_state_dict[f"{prefix}.{k}"] = v
1053
1054
1055add_state_dict("conv_in", conv_in)

Callers 1

Calls 1

state_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…