Skip to content

[TorchToLinalg] : Lower count_nonzero to Linalg-on-Tensors #4145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

um-urosmarkovic
Copy link

@um-urosmarkovic um-urosmarkovic commented Apr 17, 2025

  • Lowered count_nonzero op to Linalg-on-Tensors
  • Decomposed aten.count_nonzero using aten.ne.Scalar and aten.sum/aten.sum.dim_IntList
  • Added tests to torch-mlir/projects/pt1/python/torch_mlir_e2e_test/test_suite/reduction.py

@um-urosmarkovic um-urosmarkovic force-pushed the feature/um-urosmarkovic/count_nonzero branch from 0d5418c to 441c238 Compare April 18, 2025 02:08
@um-urosmarkovic
Copy link
Author

um-urosmarkovic commented Apr 18, 2025

Hi @vivekkhandelwal1 , could you please approve the workflows when you get the chance? Thanks in advance!

@um-urosmarkovic um-urosmarkovic force-pushed the feature/um-urosmarkovic/count_nonzero branch from 441c238 to 6525c97 Compare April 19, 2025 12:07
@um-urosmarkovic
Copy link
Author

Hi @vivekkhandelwal1 , I’ve rebased the branch and the CI workflows need maintainer approval again. Could you please click “Approve and run” when you have a moment? Thanks!

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