mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
fix bug of concatenating list to tuple (#444)
This commit is contained in:
parent
c391bfd100
commit
c0ea334738
@ -1195,7 +1195,7 @@ class RandomCombine(nn.Module):
|
|||||||
ans = torch.matmul(stacked_inputs, weights)
|
ans = torch.matmul(stacked_inputs, weights)
|
||||||
# ans: (*, num_channels)
|
# 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
|
# The following if causes errors for torch script in torch 1.6.0
|
||||||
# if __name__ == "__main__":
|
# if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user