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

Function update_state_dict_inplace

scripts/convert_ltx2_to_diffusers.py:134–135  ·  view source on GitHub ↗
(state_dict: dict[str, Any], old_key: str, new_key: str)

Source from the content-addressed store, hash-verified

132
133
134def update_state_dict_inplace(state_dict: dict[str, Any], old_key: str, new_key: str) -> None:
135 state_dict[new_key] = state_dict.pop(old_key)
136
137
138def remove_keys_inplace(key: str, state_dict: dict[str, Any]) -> None:

Callers 5

convert_ltx2_transformerFunction · 0.70
convert_ltx2_connectorsFunction · 0.70
convert_ltx2_video_vaeFunction · 0.70
convert_ltx2_audio_vaeFunction · 0.70
convert_ltx2_vocoderFunction · 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…