Thanks, numpy.ascontiguousarray() worked.
I also discovered that the negative strides are caused by an upside-down flipping of the array (in the code used to read the pfm image), so deleting that line and flipping the pytorch tensor with an index_select() works too.