You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by GitBox <gi...@apache.org> on 2026/04/03 07:53:51 UTC
[GH] (tvm/main): Workflow run "Teams" is working again!
The GitHub Actions job "Teams" on tvm.git/main has succeeded.
Run started by GitHub user liggest (triggered by liggest).
Head commit for run:
10ba3c232bfce87d7dc4f079c7717ac82ce7203a / Kryptonite <oa...@gmail.com>
[Frontend][ONNX] Support select_last_index for ArgMax and ArgMin (#18969)
### Summary
This PR implements the `select_last_index` attribute (introduced in
opset 12) for the `ArgMax` and `ArgMin` ONNX operators.
Previously, setting `select_last_index=1` raised
`OpAttributeUnImplemented`. This closes the limitation tracked in the
ONNX frontend issue.
### Implementation
When `select_last_index=1`, the input tensor is reversed along the
reduction axis using `relax.op.flip`, argmax/argmin is computed on the
flipped copy, and the result is remapped back to the original index
space via `last_idx = (axis_size - 1) - flipped_idx`
Closes part of #18945
---------
Signed-off-by: OmarAzizi <oa...@gmail.com>
Report URL: https://github.com/apache/tvm/actions/runs/23938877308
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: discuss-archive-unsubscribe@tvm.apache.org
For additional commands, e-mail: discuss-archive-help@tvm.apache.org