[DataType] Update to use explicit Bool Type Aligning with DLPack (#18453)

This PR updates the project to use explicit bool type which helps us to
align with dlpack. It will also streamline explicit use of bool types.
30 files changed
tree: de79cc8a100a6292d03beacfe54117be7d1a5539
  1. .github/
  2. 3rdparty/
  3. apps/
  4. ci/
  5. cmake/
  6. conda/
  7. configs/
  8. docker/
  9. docs/
  10. include/
  11. jvm/
  12. licenses/
  13. python/
  14. src/
  15. tests/
  16. web/
  17. .asf.yaml
  18. .clang-format
  19. .gitattributes
  20. .gitignore
  21. .gitmodules
  22. .pre-commit-config.yaml
  23. CMakeLists.txt
  24. conftest.py
  25. CONTRIBUTORS.md
  26. KEYS
  27. LICENSE
  28. Makefile
  29. mypy.ini
  30. NOTICE
  31. pyproject.toml
  32. README.md
  33. version.py
README.md

Open Machine Learning Compiler Framework

Documentation | Contributors | Community | Release Notes

Apache TVM is an open machine learning compilation framework, following the following principles:

  • Python-first development that enables quick customization of machine learning compiler pipelines.
  • Universal deployment to bring models into minimum deployable modules.

License

TVM is licensed under the Apache-2.0 license.

Getting Started

Check out the TVM Documentation site for installation instructions, tutorials, examples, and more. The Getting Started with TVM tutorial is a great place to start.

Contribute to TVM

TVM adopts the Apache committer model. We aim to create an open-source project maintained and owned by the community. Check out the Contributor Guide.

History and Acknowledgement

TVM started as a research project for deep learning compilation. The first version of the project benefited a lot from the following projects:

  • Halide: Part of TVM's TIR and arithmetic simplification module originates from Halide. We also learned and adapted some parts of the lowering pipeline from Halide.
  • Loopy: use of integer set analysis and its loop transformation primitives.
  • Theano: the design inspiration of symbolic scan operator for recurrence.

Since then, the project has gone through several rounds of redesigns. The current design is also drastically different from the initial design, following the development trend of the ML compiler community.

The most recent version focuses on a cross-level design with TensorIR as the tensor-level representation and Relax as the graph-level representation and Python-first transformations. The project's current design goal is to make the ML compiler accessible by enabling most transformations to be customizable in Python and bringing a cross-level representation that can jointly optimize computational graphs, tensor programs, and libraries. The project is also a foundation infra for building Python-first vertical compilers for domains, such as LLMs.