Solved by Latope2-150 in post #3 
              
              
                That is indeed how MaxUnpool works but I would have quoted another part of the doc : 

Note 
MaxPool2d can map several input sizes to the same output sizes. Hence, the inversion process can get ambiguous. To accommodate this, you can provide the needed output size as an additional argument output_si…