mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Slight code cleanup/simplification
This commit is contained in:
parent
99d17d13cf
commit
e1d741a632
@ -355,8 +355,8 @@ class ConformerEncoder(nn.Module):
|
|||||||
indexes[j+1] = a
|
indexes[j+1] = a
|
||||||
|
|
||||||
|
|
||||||
for i,j in enumerate(indexes):
|
for i in indexes:
|
||||||
mod = self.layers[j]
|
mod = self.layers[i]
|
||||||
output, attn_scores = mod(
|
output, attn_scores = mod(
|
||||||
output,
|
output,
|
||||||
pos_emb,
|
pos_emb,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user