fix a error for conformer.py

This commit is contained in:
luomingshuang 2022-06-24 19:32:24 +08:00
parent 1b93d6f575
commit 29eab49966

View File

@ -1195,7 +1195,7 @@ class RandomCombine(nn.Module):
ans = torch.matmul(stacked_inputs, weights)
# ans: (*, num_channels)
ans = ans.reshape(inputs[0].shape[:-1] + [num_channels])
ans = ans.reshape(inputs[0].shape[:-1] + (num_channels,))
# The following if causes errors for torch script in torch 1.6.0
# if __name__ == "__main__":