PyTorch

PyTorch: Weekly Recap - Dynamo Enhancements & Critical Fixes

This week brought significant improvements to PyTorch's Dynamo system with constant evaluation support and new operator implementations, alongside critical fixes for SDPA backward passes and Inductor code generation issues. The team also addressed compilation warnings on macOS and resolved several edge cases in mathematical operations.

Duration: PT2M33S

https://podlog.io/listen/pytorch-2496be96/episode/pytorch-weekly-recap-dynamo-enhancements-critical-fixes-36dd63df

Transcript

Good morning. This is your PyTorch weekly recap for May 10th through 17th, 2026.

Zero pull requests were merged with 30 additional commits this week.

Starting with major enhancements: Animesh Jain added constant evaluation support to Dynamo, enabling handling of one-argument constant string expressions through AST parsing. This change allows CPython numeric literal evaluation tests to run without broad skips while maintaining security by restricting eval to literal containers and numeric operators only.

Guilherme Leobas implemented nb_subtract and nb_inplace_subtract operators in Dynamo, extending mathematical operation support across multiple variable types including tensors, constants, dictionaries, and sets. The implementation added over 800 new test cases ensuring comprehensive coverage.

Moving to critical fixes: Jason Ansel resolved three significant issues in Inductor. First, a fix for SDPA backward constraint handling when dealing with scalar gradient bases, which previously caused IndexError when indexing the last dimension. Second, correction of frac decomposition to properly handle signed zero cases by matching the reference implementation's x minus trunc x calculation. Third, resolution of external template epilogue range rename synchronization to prevent symbol resolution failures during codegen.

Michael Gschwind addressed a syntax error in user-defined Triton kernels by properly escaping backslashes in embedded kernel source code. This prevents backslash escape sequences from becoming literal newlines during compilation.

Infrastructure improvements included Nikita Shulga's work to suppress deprecated declaration warnings on macOS by wrapping Apple framework includes with diagnostic pragmas, cleaning up compilation output on recent SDKs.

Charlie West-Taylor added proper guards for CPU C++ wrapper tests, ensuring they only run when the active CPU backend actually provides a C++ wrapper implementation.

The week also saw a revert of the Native DSL RMSNorm implementation due to automatic revert triggers, indicating potential stability concerns that require further investigation.

Next week, we'll likely see continued focus on Dynamo operator completeness and follow-up work on the reverted RMSNorm implementation.

That's your PyTorch update. Back next week.