As release note of pytorch 1.5 3 says, Tensor.clone ,  Tensor.to ,  Tensor.empty_like , and similar functions preserve stride information instead of returning contiguous tensors. When migrating to pytorch 1.5, I met “RuntimeError: view size is not compatible with input tensor’s size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(…) instead.” But there is no more information provided to debug which part of the code raise this error. How should I debug this kind of error?