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

Function update_state_dict_

scripts/convert_cosmos_to_diffusers.py:187–188  ·  view source on GitHub ↗
(state_dict: Dict[str, Any], old_key: str, new_key: str)

Source from the content-addressed store, hash-verified

185
186
187def update_state_dict_(state_dict: Dict[str, Any], old_key: str, new_key: str) -> dict[str, Any]:
188 state_dict[new_key] = state_dict.pop(old_key)
189
190
191def rename_transformer_blocks_(key: str, state_dict: Dict[str, Any]):

Callers 3

convert_transformerFunction · 0.70
convert_controlnetFunction · 0.70
convert_vaeFunction · 0.70

Calls 1

popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…