← Back to events
ActiveAIRelease2.13.0

trunk/3601a4924cb23c555c61850d5fd1f0a010a06b5e: [MPS] Ignore bias in complex `[b]add[b]mm` when beta is 0 (#194474)

Photo: PyTorch Releases

What happened

Fixes #194442 . baddbmm / addbmm / addmm document that when beta == 0 the input /bias is ignored, so nan/inf in it must not propagate. On MPS, real dtypes already honor this (the MPSGraph path drops the bias node when beta == 0 , and the bfloat16 case from the issue was already fixed on main after 2.13.0), but complex and integral types take the Metal-kernel path, which unconditionally adds beta*bias , so a nan/inf…

Summary assembled by rule from the sources below

Why it's spreading

Sources