← 返回事件
持续讨论AI发版

viable/strict/1789065007: [BE] Unify reflection/replication padding shape checks (#196457)

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源