Solved by albanD in post #2 
              
              
                Hi, 
Resizing is seen as any other op and is perfectly differentiable. So you can .view() is any way you want and it will work !