Don't patch weights when multiplier is zero.
This commit is contained in:
@@ -359,6 +359,7 @@ class ModelPatcher:
|
|||||||
|
|
||||||
if len(v) == 1:
|
if len(v) == 1:
|
||||||
w1 = v[0]
|
w1 = v[0]
|
||||||
|
if alpha != 0.0:
|
||||||
if w1.shape != weight.shape:
|
if w1.shape != weight.shape:
|
||||||
print("WARNING SHAPE MISMATCH {} WEIGHT NOT MERGED {} != {}".format(key, w1.shape, weight.shape))
|
print("WARNING SHAPE MISMATCH {} WEIGHT NOT MERGED {} != {}".format(key, w1.shape, weight.shape))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user