mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-22 20:30:25 +08:00
Fix kwargs
This commit is contained in:
parent
c13ec6ac00
commit
b93f165c2e
@ -753,7 +753,7 @@ def ensure_module_materialized(
|
|||||||
_log_materialization(module, target_device, free_mem_start, refs, state, "Disk weight materialized")
|
_log_materialization(module, target_device, free_mem_start, refs, state, "Disk weight materialized")
|
||||||
|
|
||||||
|
|
||||||
def disk_weight_pre_hook(module: torch.nn.Module, args, kwargs):
|
def disk_weight_pre_hook(module: torch.nn.Module, args, kwargs={}):
|
||||||
if not REGISTRY.has(module) and module not in LAZY_MODULE_STATE:
|
if not REGISTRY.has(module) and module not in LAZY_MODULE_STATE:
|
||||||
return
|
return
|
||||||
input_dtype = _find_tensor_dtype(args, kwargs)
|
input_dtype = _find_tensor_dtype(args, kwargs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user