How do I properly use the .interpolate function? - PyTorch ...
https://discuss.pytorch.org/t/how-do-i-properly-use-the-interpolate...09.04.2020 · I have a tensor, pred which has a .size of torch.Size([8, 28, 161]). I want it to match the shape of outputs, which has a .size of torch.Size([8, 27, 161]), so I’m doing: pred = torch.nn.functional.interpolate(outputs, size=outputs.size()) But this gives me an error: File "train_reconstruction.py", line 204, in main pred = torch.nn.functional.interpolate(outputs, …