mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
register the weight and bias
This commit is contained in:
parent
6806810666
commit
c0924f0a2f
@ -1764,6 +1764,8 @@ class ActivationDropoutAndLinear_lora(torch.nn.Module):
|
|||||||
initial_scale=initial_scale,
|
initial_scale=initial_scale,
|
||||||
bias=bias,
|
bias=bias,
|
||||||
)
|
)
|
||||||
|
self.weight = self.l.weight
|
||||||
|
self.register_parameter("bias", self.l.bias)
|
||||||
|
|
||||||
if activation == "SwooshL":
|
if activation == "SwooshL":
|
||||||
self.activation = SwooshL()
|
self.activation = SwooshL()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user