MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / update

Method update

lightx2v/utils/lockable_dict.py:114–123  ·  view source on GitHub ↗
(self, other: Mapping | Iterable, **kwargs)

Source from the content-addressed store, hash-verified

112 return dict.setdefault(self, key, default)
113
114 def update(self, other: Mapping | Iterable, **kwargs) -> None:
115 self._ensure_unlocked()
116 if isinstance(other, Mapping):
117 items = list(other.items())
118 else:
119 items = list(other)
120 for k, v in items:
121 dict.__setitem__(self, k, self._wrap(v))
122 for k, v in kwargs.items():
123 dict.__setitem__(self, k, self._wrap(v))
124
125 # Python 3.9 in-place union: d |= x
126 def __ior__(self, other):

Callers 15

__ior__Method · 0.95
extract_lora_from_diffFunction · 0.45
convert_weightsFunction · 0.45
set_infer_config_jsonMethod · 0.45
modify_configMethod · 0.45
from_argsMethod · 0.45
get_all_input_info_keysFunction · 0.45
set_args2configFunction · 0.45
auto_calc_configFunction · 0.45
get_metricsMethod · 0.45

Calls 4

_ensure_unlockedMethod · 0.95
_wrapMethod · 0.95
itemsMethod · 0.45
__setitem__Method · 0.45

Tested by 2

make_configFunction · 0.36
make_bagel_i2i_configFunction · 0.36