index.rst 1.15 KB
Newer Older
1 2
Language Reference
==================
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
This document provides references to
embedded languages and IRs in the TVM stack.

Introduction to Relay
---------------------

Relay is a functional, differentiable programming language
designed to be an expressive intermediate representation for machine
learning systems. Relay supports closures, control flow, and
recursion, allowing it to directly represent more complex models
than can computation graph-based IRs.
Relay also includes a form of dependent typing using *type relations*
in order to handle shape analysis for operators with complex
requirements on argument shapes.

Relay is extensible by design and makes it easy for machine learning
researchers and practitioners to develop new large-scale program
transformations and optimizations.

The below pages describe the grammar, type system, and operators in Relay, respectively.
23 24 25 26

.. toctree::
   :maxdepth: 2

27 28
   relay_expr
   relay_type
29
   relay_op
30 31 32 33 34 35 36 37 38 39 40

Hybrid Script
-------------

The below page describes the TVM hybrid script front-end,
which uses software emulation to support some constructs not
officially supported in TVM.

.. toctree::
   :maxdepth: 2

41
   hybrid_script