trunk/ebc5cc437ec936657e95f35de3084d65a764ac6e: [MPS] Migrate `addc[mul|div]` to Metal (#196924)
- PyTorch: 1543 events in the last 90 days
- PyTorch: 1524th Release in the last 90 days
- Previous: earlier the same day · trunk/7da194f6c69ad90869cd35d0d850c8c59c36164a: [torchtitan hash update] update the pinned torchtitan hash (#198742)
What happened
Follows the precedent set by lerp and clamp: both ops now register addc{mul,div}_stub and run through the shared exec_ternary_kernel , which gains an alpha flavor for the value scalar so the family covers clamp , lerp , addcmul and addcdiv alike. Fixes the same cast error lerp had: the _cast_ ternary kernels were instantiated for the output dtype, so an out= wider than the common dtype widened the computation as wel…
Summary assembled by rule from the sources below