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
8b59cb1ac0
commit
cc5c3eff53
Binary file not shown.
Binary file not shown.
@ -244,11 +244,12 @@ class Interformer(nn.Module):
|
|||||||
x: torch.Tensor,
|
x: torch.Tensor,
|
||||||
x_lens: torch.Tensor,
|
x_lens: torch.Tensor,
|
||||||
):
|
):
|
||||||
encoder_out, x_lens, pt_layer_outputs = self.pt_encoder(x,
|
with torch.no_grad():
|
||||||
x_lens,
|
encoder_out, x_lens, pt_layer_outputs = self.pt_encoder(x,
|
||||||
warmup=warmup,
|
x_lens,
|
||||||
get_layer_output=True
|
warmup=warmup,
|
||||||
)
|
get_layer_output=True
|
||||||
|
)
|
||||||
|
|
||||||
inter_layer_outputs = self.inter_encoder(pt_layer_outputs)
|
inter_layer_outputs = self.inter_encoder(pt_layer_outputs)
|
||||||
loss = 0
|
loss = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user