Open deep learning compiler stack for cpu, gpu and specialized accelerators

Clone this repo:
  1. 4267fbf [IR][SIBuilder] (#14574) by Chun-I Tsai · 35 hours ago main nightly
  2. 43f06ca [TIR] Avoid re-defining `var = arg_var` in ArgBinder (#14952) by Eric Lunderberg · 35 hours ago
  3. 94c1b89 [TVMScript][TIR] Parse subroutine calls with no arguments (#14919) by Eric Lunderberg · 36 hours ago
  4. 5f1421d [Bugfix][PyTorch] Support use_input_stats in instance_norm (#14963) by Quanfeng Li · 3 days ago
  5. c47d36e [Hexagon] Add support for v73, make v68 default (#14965) by Krzysztof Parzyszek · 3 days ago

Open Deep Learning Compiler Stack

Documentation | Contributors | Community | Release Notes

Build Status WinMacBuild

Apache TVM is a compiler stack for deep learning systems. It is designed to close the gap between the productivity-focused deep learning frameworks, and the performance- and efficiency-focused hardware backends. TVM works with deep learning frameworks to provide end to end compilation to different backends.


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 apache committer model, we aim to create an open source project that is maintained and owned by the community. Check out the Contributor Guide.


We learned a lot from the following projects when building TVM.

  • Halide: Part of TVM's TIR and arithmetic simplification module originates from Halide. We also learned and adapted some part of 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.