viable/strict/1789065007: [BE] Unify reflection/replication padding shape checks (#196457)
- PyTorch 近 90 天出现 754 次
- PyTorch 近 90 天第 744 次发版
- 上一次:同一天稍早 · viable/strict/1789046736: [Test] Refactor `test_indexing.py` (#194731)
发生了什么
Similar to the pooling input validation unification ( #196230 ), the six pad ops hand-wrote the same shape checks in a dozen places across CPU, CUDA and MPS, and the copies had drifted. Collect them in Padding.h next to the existing check_valid_input, parameterized by rank and by whether the caller is reflection padding, and route every backend through them. All three now report identical errors, matching the alread…
摘要按规则整理自下方来源原文