Skip to content

[TorchToLinalg] : Lower count_nonzero.dim_IntList to Linalg-on-Tensors #4146

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

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

@um-urosmarkovic um-urosmarkovic changed the title [TorchToLinalg] Lower count_nonzero.dim_IntList to Linalg-on-Tensors [TorchToLinalg] : Lower count_nonzero.dim_IntList to Linalg-on-Tensors Apr 18, 2025
@um-urosmarkovic
Copy link
Author

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

@um-urosmarkovic um-urosmarkovic force-pushed the feature/um-urosmarkovic/count_nonzero_dimIntList branch from 0425811 to 655b284 Compare April 19, 2025 12:08
@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