mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-09 20:47:12 +08:00
fix a bug:AttributeError: 'Linear' object has no attribute 'weight_function'
fix a bug:AttributeError: 'Linear' object has no attribute 'weight_function'
This commit is contained in:
parent
b4d3652d88
commit
cc9d669c62
@ -97,7 +97,7 @@ def wipe_lowvram_weight(m):
|
|||||||
m.comfy_cast_weights = m.prev_comfy_cast_weights
|
m.comfy_cast_weights = m.prev_comfy_cast_weights
|
||||||
del m.prev_comfy_cast_weights
|
del m.prev_comfy_cast_weights
|
||||||
|
|
||||||
if hasattr(m, "weight_function"):
|
if not hasattr(m, "weight_function"):
|
||||||
m.weight_function = []
|
m.weight_function = []
|
||||||
|
|
||||||
if hasattr(m, "bias_function"):
|
if hasattr(m, "bias_function"):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user