viable/strict/1792043563: Bind _prims_common contiguity checks to the C++ helpers (#199322)
- PyTorch 近 90 天出现 2352 次
- PyTorch 近 90 天第 2322 次发版
- 上一次:同一天稍早 · viable/strict/1792042144
发生了什么
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…
摘要按规则整理自下方来源原文