Sparse Tensor Dialect Repository Structure
Stay organized with collections
Save and categorize content based on your preferences.
Sparse Tensor Dialect is located in MLIR repository.
Library and C++ Files
Python Bindings and CAPI
MLIR Benchmark
Tests
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["\u003cp\u003eThe Sparse Tensor Dialect, residing within the MLIR repository, provides infrastructure for representing and processing sparse tensors.\u003c/p\u003e\n"],["\u003cp\u003eIt offers comprehensive support including header files, a runtime support library, Python bindings, and a C API for integration with external systems.\u003c/p\u003e\n"],["\u003cp\u003eThe dialect includes a benchmark suite for performance evaluation and a robust testing framework encompassing file checks, end-to-end tests, unit tests, and CAPI/Python binding tests.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage the Sparse Tensor Dialect to optimize computations involving sparse data structures within the MLIR ecosystem.\u003c/p\u003e\n"]]],[],null,["# Sparse Tensor Dialect Repository Structure\n\nSparse Tensor Dialect is located in [MLIR repository](https://github.com/llvm/llvm-project/tree/main/mlir).\n\nHeader Files\n------------\n\n- [mlir/include/mlir/Dialect/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/include/mlir/Dialect/SparseTensor)\n- [mlir/include/mlir/ExecutionEngine/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/include/mlir/ExecutionEngine/SparseTensor)\n\nLibrary and C++ Files\n---------------------\n\n- [mlir/lib/Dialect/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/lib/Dialect/SparseTensor)\n- Sparse tensor runtime support library for execution engine\n - [mlir/lib/ExecutionEngine/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/lib/ExecutionEngine/SparseTensor) ([Runtime](https://github.com/llvm/llvm-project/tree/main/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp))\n\nPython Bindings and CAPI\n------------------------\n\n- [mlir/include/mlir-c/Dialect/SparseTensor.h](https://github.com/llvm/llvm-project/tree/main/mlir/include/mlir-c/Dialect/SparseTensor.h)\n- [mlir/lib/Bindings/Python/DialectSparseTensor.cpp](https://github.com/llvm/llvm-project/tree/main/mlir/lib/Bindings/Python/DialectSparseTensor.cpp) ([Passes](https://github.com/llvm/llvm-project/tree/main/mlir/lib/Bindings/Python/SparseTensorPasses.cpp))\n- [mlir/lib/CAPI/Dialect/SparseTensor.cpp](https://github.com/llvm/llvm-project/tree/main/mlir/lib/CAPI/Dialect/SparseTensor.cpp) ([Passes](https://github.com/llvm/llvm-project/tree/main/mlir/lib/CAPI/Dialect/SparseTensorPasses.cpp))\n- [mlir/python/mlir/dialects/sparse_tensor.py](https://github.com/llvm/llvm-project/tree/main/mlir/python/mlir/dialects/sparse_tensor.py)\n\nMLIR Benchmark\n--------------\n\n- [mlir/benchmark/python/benchmark_sparse.py](https://github.com/llvm/llvm-project/tree/main/mlir/benchmark/python/benchmark_sparse.py)\n\nTests\n-----\n\n- [mlir/test/Dialect/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/test/Dialect/SparseTensor) (FileCheck tests)\n- [mlir/test/Integration/Dialect/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/test/Integration/Dialect/SparseTensor) (End-to-end tests)\n- [mlir/unittests/Dialect/SparseTensor](https://github.com/llvm/llvm-project/tree/main/mlir/unittests/Dialect/SparseTensor) (Unit tests)\n- [mlir/test/CAPI/sparse_tensor.c](https://github.com/llvm/llvm-project/tree/main/mlir/test/CAPI/sparse_tensor.c) (CAPI tests)\n- [mlir/test/python/dialects/sparse_tensor/dialect.py](https://github.com/llvm/llvm-project/tree/main/mlir/test/python/dialects/sparse_tensor/dialect.py) (Python binding tests)"]]