I’m running the follwing code:
pool = torch.nn.MaxPool3d((4, 4, 4), return_indices=True)
unpool = torch.nn.MaxUnpool3d((4, 4, 4))
o, i = pool(x)      #x is tensor of size [1, 4, 256, 256]
y = unpool(o, indices=i, output_size=x.size())

But the unpool operation throws follwing error:
IndexError: tuple index out of range
I’m not sure what I’m doing wrong. I think I provided the indices and the output size correctly. Has anyone faced a similar problem? What can be the possible solution?