Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
66235d1c
Commit
66235d1c
authored
Sep 04, 2019
by
miheer vaidya
Committed by
Zhi
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reveal hidden code snippets by inserting newline (#3892)
parent
f07fe80a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
docs/langref/relay_type.rst
+4
-0
No files found.
docs/langref/relay_type.rst
View file @
66235d1c
...
...
@@ -102,6 +102,7 @@ For example, in the below code, :code:`%t` is of type
and :code:`%c` is of type :code:`Tensor[(10, 10), float32]`.
.. code-block:: python
let %t = (False, Constant(1, (10, 10), float32));
let %c = %t.1;
%c
...
...
@@ -195,6 +196,7 @@ to hold, if such values exist.
For example we can define an identity relation to be:
.. code-block:: prolog
Identity(I, I) :- true
It is usually convenient to type operators
...
...
@@ -203,6 +205,7 @@ encodes all the necessary constraints on the argument types
and the return type. For example, we can define the relation for :code:`flatten`:
.. code-block:: prolog
Flatten(Tensor(sh, bt), O) :-
O = Tensor(sh[0], prod(sh[1:]))
...
...
@@ -210,6 +213,7 @@ If we have a relation like :code:`Broadcast` it becomes possible
to type operators like :code:`add`:
.. code-block:: python
add : fn<t1 : Type, t2 : Type, t3 : Type>(t1, t2) -> t3
where Broadcast
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment