[Easy] Add pointwise tag to fma (#164149)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164149
Approved by: https://github.com/fmassa
This commit is contained in:
eellison
2025-09-29 09:11:06 -07:00
committed by PyTorch MergeBot
parent 170e0309ca
commit d58f7c3ad1

View File

@ -112,6 +112,7 @@ fma = make_prim(
"fma(Tensor a, Tensor b, Tensor c) -> Tensor",
lambda a, b, c: (a * b) + c,
doc="Fused multiply add: fma(a, b, c) -> (a * b) + c without rounding after the multiplication",
tags=(torch.Tag.pointwise,),
)
prepare_softmax_online = make_prim(
"prepare_softmax_online(Tensor a, int dim) -> (Tensor, Tensor)",