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
df013c37fa
commit
f407e7cfea
Binary file not shown.
Binary file not shown.
@ -189,7 +189,7 @@ class Conformer(Transformer):
|
||||
ctc_output=self.ctc_output,
|
||||
) # (S, N, C)
|
||||
|
||||
if self.group_num != 0:
|
||||
if self.group_num > 0:
|
||||
x = 0
|
||||
for enum, alpha in enumerate(self.alpha):
|
||||
x += self.sigmoid(alpha) * layer_outputs[(enum+1)*self.group_layer_num-1]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user