mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-05-10 06:25:27 +00:00
Fix issue on old torch.
This commit is contained in:
parent
9ad792f927
commit
b4dc03ad76
@ -49,6 +49,7 @@ if RMSNorm is None:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.register_parameter("weight", None)
|
self.register_parameter("weight", None)
|
||||||
|
self.bias = None
|
||||||
|
|
||||||
def forward(self, x):
|
def forward(self, x):
|
||||||
return rms_norm(x, self.weight, self.eps)
|
return rms_norm(x, self.weight, self.eps)
|
||||||
|
Loading…
Reference in New Issue
Block a user