mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
170e0309ca
commit
d58f7c3ad1
@ -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)",
|
||||
|
Reference in New Issue
Block a user