Upsampling NCHW format for TensorRT plugin

I am implementing TensorRT plugin and like to make sure my upsampling is correct format for TensorRT.

I have detail explanation in the following link.

https://stackoverflow.com/questions/57724388/upsampling-tensor-for-tensorrt

Is Method_1 or Method_2 correct way of upsampling for NCHW format?