Skip to content

Commit

Permalink
[Relay][Docs] Documentation for Algebraic Data Types (apache#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
slyubomirsky authored and Wei Chen committed Feb 20, 2019
1 parent 1853bcc commit 1bc5f46
Show file tree
Hide file tree
Showing 4 changed files with 784 additions and 16 deletions.
10 changes: 6 additions & 4 deletions docs/langref/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ 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.
learning systems. Relay supports algebraic data types, closures,
control flow, and recursion, allowing it to directly represent more
complex models than computation graph-based IRs can.
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.
Expand All @@ -19,13 +19,15 @@ 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.
The below pages describe the grammar, type system,
algebraic data types, and operators in Relay, respectively.

.. toctree::
:maxdepth: 2

relay_expr
relay_type
relay_adt
relay_op

Hybrid Script
Expand Down
Loading

0 comments on commit 1bc5f46

Please sign in to comment.