Although my previous problem has been solved. But I notice that in other code, .contiguous() certainly change the torch in-place:

Screen Shot 2018-03-05 at 6.59.48 PM.png1510×466 51.6 KB

Is the case occasional?