viable/strict/1792043563: Bind _prims_common contiguity checks to the C++ helpers (#199322)
- PyTorch: 2351 events in the last 90 days
- PyTorch: 2321th Release in the last 90 days
- Previous: earlier the same day · trunk/5f0215fa357dbf5e74ffa37cf7a1b285f01c8932
What happened
Addresses review on #198875 and #199322 : _prims_common's contiguity checks had their own Python implementations alongside the C++ ones in c10/core/Contiguity.h. Both paths now call the C++ helpers through torch._C, so there is one implementation. The false_if_dde=True paths call c10::_is_contiguous_or_false, _is_channels_last_contiguous_2d_or_false and _is_channels_last_contiguous_3d_or_false, which match the Pytho…
Summary assembled by rule from the sources below