| commit | 25a37e73fd696c76cdeebcf392953c5b1de0da04 | [log] [tgz] |
|---|---|---|
| author | Dayuxiaoshui <158081477+Dayuxiaoshui@users.noreply.github.com> | Fri Nov 28 14:07:14 2025 +0800 |
| committer | GitHub <noreply@github.com> | Fri Nov 28 01:07:14 2025 -0500 |
| tree | 335cc9d36791e8e5cd8dd1a8ed2953212a7373f6 | |
| parent | 7fe876007683e55c49ff4aebc3a16280002265e1 [diff] |
[Relax][PyTorch] Add support for sparse matrix multiplication and random number generation (#18499) This commit adds support for sparse matrix multiplication and random number generation in PyTorch frontend. Changes: - Add _sparse_mm() method to handle sparse matrix multiplication - Add _sparse_addmm() method to handle sparse addmm operations - Add _randn() method to handle torch.randn random number generation - Register these operations in the convert_map The fix ensures that PyTorch models containing sparse matrix operations and random number generation can be successfully converted to TVM Relax modules. Fixes #18476
Documentation | Contributors | Community | Release Notes
Apache TVM is an open machine learning compilation framework, following the following principles:
TVM is licensed under the Apache-2.0 license.
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.
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.
TVM started as a research project for deep learning compilation. The first version of the project benefited a lot from the following projects:
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.