How to change the resolution of the result of a prediction

Hi, guys!
How to resize resolution of the prediction of a Segmentation model?
For instance, if I want the size of the output to be (1,1280,720) but the output of my model is (1,360,640), what should I do?
I tried this but failed.

I will appreciate for any help. And I will appreciate more if you have a demo. Thanks!