Why is .clone() necesary after expand

Hi albanD,

yes, you are absolutely right. The tensor feats I tested here is dummy tensor, not the direct output of a backbone model. If I put my bilinear sampling module into my complete model. The problem is automatically resolved. Actually, if there is tensor that is non-contiguous, it might trigger runtime error if some ops need the tensor to be contiguous. Thanks for your input.