Skip to content

Commit 5c5e523

Browse files
Add enable_gqa parameter to SDPA MPS meta registration (#181550)
Add enable_gqa parameter to SDPA MPS meta registration (#181383) _scaled_dot_product_attention_math_for_mps op now accepts enable_gqa but the meta registration was missing it Pull Request resolved: #181383 Approved by: https://github.com/malfet (cherry picked from commit acd3331) Co-authored-by: Manuel Candales <[email protected]>
1 parent eece52e commit 5c5e523

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎torch/_meta_registrations.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6281,6 +6281,7 @@ def meta__scaled_dot_product_attention_math_for_mps(
62816281
is_causal: bool = False,
62826282
dropout_mask: Tensor | None = None,
62836283
scale: float | None = None,
6284+
enable_gqa: bool = False,
62846285
) -> tuple[Tensor, Tensor]:
62856286
def ensure_4d(x):
62866287
if x.dim() == 3:

0 commit comments

Comments
 (0)