MCPcopy
hub / github.com/kohya-ss/sd-scripts / keys

Method keys

library/safetensors_utils.py:447–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445 self.new_keys.append(new_key)
446
447 def keys(self) -> list[str]:
448 return self.new_keys
449
450 def get_tensor(self, new_key: str, device: Optional[torch.device] = None, dtype: Optional[torch.dtype] = None) -> torch.Tensor:
451 # load tensor by new_key, applying split or concat hooks as needed

Callers 15

save_weightsMethod · 0.45
__call__Method · 0.45
save_modelFunction · 0.45
__call__Method · 0.45
save_modelFunction · 0.45
__call__Method · 0.45
mainFunction · 0.45
merge_lora_weightsFunction · 0.45
save_weightsMethod · 0.45
load_control_netFunction · 0.45
mergeFunction · 0.45

Calls

no outgoing calls

Tested by 3

_state_dicts_equalFunction · 0.36
test_text_encoder_cacheFunction · 0.36