Skip to content

[Relax][ONNX] Add CumProd operator support - #20937

Open
Anirudh-65 wants to merge 2 commits into
apache:mainfrom
Anirudh-65:cumprod-impl
Open

Anirudh-65 wants to merge 2 commits into
apache:mainfrom
Anirudh-65:cumprod-impl

Conversation

@Anirudh-65

Copy link
Copy Markdown
Contributor

This commit adds support for the ONNX CumProd operator in the Relax ONNX frontend.

Key changes:

  • In python/tvm/relax/frontend/onnx/onnx_frontend.py, implemented the CumProd converter class (_impl_v1) supporting axis selection, exclusive cumprod, and reverse cumprod via topi.flip.
  • Registered 'CumProd' in _get_convert_map().
  • In tests/python/relax/test_frontend_onnx.py, added comprehensive unit tests covering all combinations of reverse and exclusive, 1-D int32 axis initializers, non-constant axis error handling, and axis shape validation.

This commit adds support for the ONNX CumProd operator in the
Relax ONNX frontend.

Key changes:
- In `python/tvm/relax/frontend/onnx/onnx_frontend.py`, implemented the
  `CumProd` converter class (`_impl_v1`) supporting axis selection,
  exclusive cumprod, and reverse cumprod via `topi.flip`.
- Registered 'CumProd' in `_get_convert_map()`.
- In `tests/python/relax/test_frontend_onnx.py`, added comprehensive unit
  tests covering all combinations of reverse and exclusive, 1-D int32
  axis initializers, non-constant axis error handling, and axis shape
  validation.
@Anirudh-65

Copy link
Copy Markdown
Contributor Author

I believe the CI failure for CI/Windows check is a server-side error while setting up environment, unrelated to the PR.

@Anirudh-65

Copy link
Copy Markdown
Contributor Author

Hi @mshr-h, @yzhliu, @tqchen, @akaashrp

Could you please take a look at this PR when you get a chance?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant