trunk/3601a4924cb23c555c61850d5fd1f0a010a06b5e: [MPS] Ignore bias in complex `[b]add[b]mm` when beta is 0 (#194474)
- PyTorch: 172 events in the last 90 days
- PyTorch: 170th Release in the last 90 days
- Previous: earlier the same day · trunk/567c8013f4ea0b535e6589e9931dd3a2111950df: [CI] Use clang21 image for debug-distributed build (#195067)
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