Back to Gap Map Infrastructure / Compilers & Model Optimization

FreeTensor

Shizhi Tang (roastduck)
open source / Overall score: 2.5

FreeTensor is a compiler and embedded Python DSL for writing and optimizing loop-based tensor programs, supporting dynamic tensor shapes, OpenMP and CUDA parallelization, explicit loop and memory-layout transformations, and reverse-mode automatic differentiation, compiling down to native code.

Openness

5 high confidence
5.0
license
Apache-2.0(OSI)
source
public
core features withheld
no

Apache-2.0 license body confirmed. The repository is public and unarchived and builds the whole product, and the README describes no paid tier, enterprise edition or license-gated build beside it, so source is public and the core ungated.

Adoption

1 low confidence
1.0

FreeTensor has no PyPI or other registry package and is built from source, so GitHub stars are the only adoption signal available. A star is not a use.

Capability

4 medium confidence
4.0

FreeTensor is a compiler for loop-based tensor programs - parsing, transformation, parallelization, code generation and automatic differentiation - targeting OpenMP and CUDA. That narrows it to one class of programs, one step below Apache TVM's retargetable, multi-vendor scope.

  • https://github.com/roastduck/FreeTensor/blob/master/README.md recorded 2026-10-07

    README describes FreeTensor as compiling loop-based tensor programs written in Python to native code, with dynamic shapes, parallelization, explicit optimization transformations and automatic differentiation, and names no paid tier, enterprise edition or license-gated build beside the published source.

Verified 2026-09-27