Port amax to stable ABI (#160214)

To enable porting torchaudio to the stable ABI, we need the `amax` operation to be accessible. This PR ports the op and provides tests that it behaves correctly.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/160214
Approved by: https://github.com/mikaylagawarecki
This commit is contained in:
Sam Anklesaria
2025-08-19 17:24:53 +00:00
committed by PyTorch MergeBot
parent 1fbe230b0d
commit 0a5ab612dd
6 changed files with 99 additions and 1 deletions

View File

@ -185,4 +185,5 @@ aten_shimified_ops: dict[str, dict[str, list[str]]] = {
"aten.fill_.Scalar": {},
"aten.pad.default": {},
"aten.narrow.default": {},
"aten.amax.default": {},
}