mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 17:42:21 +00:00
Fix running exported model on GPU. (#1131)
This commit is contained in:
parent
0ad037d076
commit
947f0614c9
@ -2190,7 +2190,7 @@ class ConvolutionModule(nn.Module):
|
|||||||
|
|
||||||
x = self.in_proj(x) # (time, batch, 2*channels)
|
x = self.in_proj(x) # (time, batch, 2*channels)
|
||||||
|
|
||||||
x, s = x.chunk(2, dim=-1)
|
x, s = x.chunk(2, dim=2)
|
||||||
s = self.sigmoid(s)
|
s = self.sigmoid(s)
|
||||||
x = x * s
|
x = x * s
|
||||||
# (time, batch, channels)
|
# (time, batch, channels)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user