summaryrefslogtreecommitdiff
path: root/mlir/test/Integration/Dialect/SparseTensor/python/tools
AgeCommit message (Collapse)Author
2024-09-13[mlir][sparse] fix bug with all-dense assembler (#108615)Aart Bik
When only all-dense "sparse" tensors occur in a function prototype, the assembler would skip the method conversion purely based on input/output counts. It should rewrite based on the presence of any annotation, however.
2023-11-15[mlir][sparse] Capitalize class comment (#72436)Aart Bik
2023-11-15Changed all code and comments that used the phrase "sparse compiler" to ↵Tim Harvey
instead use "sparsifier" (#71875) The changes in this p.r. mostly center around the tests that use the flag sparse_compiler (also: sparse-compiler).
2023-11-07Changed the phrase sparse-compiler to sparsifier in comments (#71578)Tim Harvey
When the Powers That Be decided that the name "sparse compiler" should be changed to "sparsifier", we negected to change some of the comments in the code; this pull request completes the name change.
2023-10-24[mlir][sparse] add COO to python tests (#70090)Aart Bik
also typo fix
2023-09-13[mlir][sparse] remove sparse output python example (#66298)Aart Bik
Rationale: This was actually just a pure "string based" test with very little actual python usage. The output sparse tensor was handled via the deprecated convertFromMLIRSparseTensor method.
2023-05-26[NFC][Py Reformat] Reformat python files in mlir subdirTobias Hieta
This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black`. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential Revision: https://reviews.llvm.org/D150782
2023-03-01[mlir][python] Allow running pass manager on any operationrkayaith
`PassManager.run` is currently restricted to running on `builtin.module` ops, but this restriction doesn't exist on the C++ side. This updates it to take `ir.Operation/OpView` instead of `ir.Module`. Depends on D143354 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D143356
2022-11-03[mlir][python] Include anchor op in PassManager.parserkayaith
The pipeline string must now include the pass manager's anchor op. This makes the parse API properly roundtrip the printed form of a pass manager. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D136405
2022-07-16[NFC] Remove obsolete all_passes_registration from integration tests.Stella Laurenzo
After https://reviews.llvm.org/D128593 this is not needed (and not available). Was missed in original landing because integration tests do not run on pre-merge.
2022-04-12[mlir][sparse] refactored python setup of sparse compilerAart Bik
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D123419
2022-02-22[mlir][sparse] refactor sparse compiler pipeline to single placeAart Bik
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D120347
2022-02-18[mlir][sparse] provide more types for external to/from MLIR routinesAart Bik
These routines will need to be specialized a lot more based on value types, index types, pointer types, and permutation/dimension ordering. This is a careful first step, providing some functionality needed in PyTACO bridge. Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D120154
2022-02-17[NFC] Correct typo `interger` to `integer`Shao-Ce SUN
2021-12-13Support sparse tensor output.Bixia Zheng
Add convertFromMLIRSparseTensor to the supporting C shared library to convert SparseTensorStorage to COO-flavor format. Add Python routine sparse_tensor_to_coo_tensor to convert sparse tensor storage pointer to numpy values for COO-flavor format tensor. Add a Python test for sparse tensor output. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D115557