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

trunk/ceb4b0179753bf036b2cadef732e18a1056544ba: [symbolic shapes] Restore exact FloorDiv cancellation (#198575)

发生了什么

Summary PR #126905 replaced proven-divisible FloorDiv expressions with CleanDiv to preserve integer semantics. However, safe_expand does not simplify C * CleanDiv(x, C) to x. PR #195383 exposed this limitation through stricter pattern metadata validation, which rejected equivalent shapes such as x and 2 * (x // 2) even when x % 2 == 0 was known. This change directly cancels matching factors in C * CleanDiv(x, C) wit…

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

为什么在扩散

来源