PyTorch 报错 some of the strides of a given numpy array are negative数组 flip 翻转后先 c

这个报错的根源是 numpy 数组经过 flip、步长为负的切片操作之后,得到的是非连续视图(view),底层内存没有重新排布,stride(步长)