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
7f0b8a508b
commit
a1ef4531b3
Binary file not shown.
@ -154,8 +154,10 @@ class ResidualAdapterModule(nn.Module):
|
||||
)
|
||||
|
||||
def forward(x, layer_id=0):#, layer_id=-1):
|
||||
print(x.size())
|
||||
x = x.transpose(0, 1)
|
||||
residual = x
|
||||
print(residual.size())
|
||||
x = self.adapter_layers[layer_id](x)
|
||||
x = residual + x
|
||||
x = x.transpose(0, 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user