I am trying to make a concatenation operation using this line of code:
‘’’
mixture = torch.cat([mixture, torch.zeros(1, 1, padded_length, device=device2)], dim=-1)
‘’’’
Actually, it works well with PyTorch version 1.4.0 but in PyTorch version 1.7.1 it complains can anyone explain Why?