mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
gpu bug fix
This commit is contained in:
parent
4e4eed605e
commit
4c053ccc39
@ -83,6 +83,7 @@ class FSMNBlock(nn.Module):
|
||||
x = torch.unsqueeze(input, 1)
|
||||
x_per = x.permute(0, 3, 2, 1) # B D T C
|
||||
|
||||
cache = cache.to(x_per.device)
|
||||
y_left = torch.cat((cache, x_per), dim=2)
|
||||
cache = y_left[:, :, -(self.lorder - 1) * self.lstride:, :]
|
||||
y_left = self.conv_left(y_left)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user