mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
6467acd41d
commit
f8564af171
Binary file not shown.
@ -259,7 +259,7 @@ class LoRAModule(nn.Module):
|
||||
nn.init.zeros_(self.lora_B)
|
||||
nn.init_normal_(self.lora_A)
|
||||
|
||||
def forward(self, x, layer_id=-1):
|
||||
def forward(self, x, layer_idx=-1):
|
||||
x = x.transpose(0, 1)
|
||||
x = self.lora_A[layer_idx](x)
|
||||
x = self.lora_B[layer_idx](x)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user