Skip to content

Commit d7390d1

Browse files
slyubomirskytqchen
authored andcommitted
[Relay][Docs] Documentation for Algebraic Data Types (#2575)
1 parent 8518c7d commit d7390d1

File tree

4 files changed

+784
-16
lines changed

4 files changed

+784
-16
lines changed

docs/langref/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Introduction to Relay
88

99
Relay is a functional, differentiable programming language
1010
designed to be an expressive intermediate representation for machine
11-
learning systems. Relay supports closures, control flow, and
12-
recursion, allowing it to directly represent more complex models
13-
than can computation graph-based IRs.
11+
learning systems. Relay supports algebraic data types, closures,
12+
control flow, and recursion, allowing it to directly represent more
13+
complex models than computation graph-based IRs can.
1414
Relay also includes a form of dependent typing using *type relations*
1515
in order to handle shape analysis for operators with complex
1616
requirements on argument shapes.
@@ -19,13 +19,15 @@ Relay is extensible by design and makes it easy for machine learning
1919
researchers and practitioners to develop new large-scale program
2020
transformations and optimizations.
2121

22-
The below pages describe the grammar, type system, and operators in Relay, respectively.
22+
The below pages describe the grammar, type system,
23+
algebraic data types, and operators in Relay, respectively.
2324

2425
.. toctree::
2526
:maxdepth: 2
2627

2728
relay_expr
2829
relay_type
30+
relay_adt
2931
relay_op
3032

3133
Hybrid Script

0 commit comments

Comments
 (0)