mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
Fix
This commit is contained in:
parent
f44d1b00b1
commit
8936365c5c
@ -2138,7 +2138,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=2)
|
x, s = x.chunk(2, dim=-1)
|
||||||
s = self.balancer1(s)
|
s = self.balancer1(s)
|
||||||
s = self.sigmoid(s)
|
s = self.sigmoid(s)
|
||||||
x = self.activation1(x) # identity.
|
x = self.activation1(x) # identity.
|
||||||
@ -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