Fix running exported model on GPU. (#1131)

This commit is contained in:
Fangjun Kuang 2023-06-15 12:25:15 +08:00 committed by GitHub
parent 0ad037d076
commit 947f0614c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2190,7 +2190,7 @@ class ConvolutionModule(nn.Module):
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)
x = x * s
# (time, batch, channels)