Release 2.7.1

Summary

A patch release with one bug fix and one documentation addition.

Breaking changes

None.

Bug fixes

  • Perspective no longer raises IndexError on stacks of masks or grayscale images larger than 256×256 pixels. (#725, fixes #724)

Documentation

  • The NumPy and Tensor routing design doc now says that flips and crops return views of the input. A flip view has negative strides, so torch.from_numpy(result) raises ValueError; a crop view shares memory with the input. Call np.ascontiguousarray(result) before such code. ToTensorV2 and ToTensor3D already return contiguous Tensors. (#730, closes #729)

Commits

PRTitle
#725fix(geometric): warp large single-channel stacks with a channel axis in Perspective
#730docs(design): say what view outputs mean for torch and in-place OpenCV
#731chore(release): prepare 2.7.1