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
016876a900
commit
5042500454
Binary file not shown.
@ -43,7 +43,7 @@ class TransformerEncoderAdapter(TransformerEncoder):
|
|||||||
self.lora = LoRAModule()
|
self.lora = LoRAModule()
|
||||||
|
|
||||||
def forward(self, x, padding_mask=None, layer=None, tgt_layer=None):
|
def forward(self, x, padding_mask=None, layer=None, tgt_layer=None):
|
||||||
x, layer_results = self.extract_features_with_adapter(
|
x, layer_results = self.extract_features_with_lora(
|
||||||
x,
|
x,
|
||||||
padding_mask=padding_mask,
|
padding_mask=padding_mask,
|
||||||
tgt_layer=tgt_layer
|
tgt_layer=tgt_layer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user