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
b5a746d2
Commit
b5a746d2
authored
Jul 09, 2019
by
Wei Chen
Committed by
Jared Roesch
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Relay][Doc] Docs for new op code (#3522)
parent
025a6c80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
docs/dev/virtual_machine.rst
+26
-3
No files found.
docs/dev/virtual_machine.rst
View file @
b5a746d2
...
...
@@ -160,14 +160,28 @@ If
^^
**Arguments**:
::
RegName if_cond
RegName test
RegName target
size_t true_offset
size_t false_offset
Check if the object at register `
if_cond` is `true` or `false
`.
If
`true`
, relative jump by `true_offset`, else relative
Check if the object at register `
test` is equal to `target
`.
If
equal
, relative jump by `true_offset`, else relative
jump by `false_offset`.
GetTagi
^^^^^^^
**Arguments**:
::
RegName object
RegName dst
Get the object tag for Datatype object in register `object`. And saves the reult to register `dst`.
Fatal
^^^^^
Fail the virtual machine execution.
Goto
^^^^
**Arguments**:
...
...
@@ -204,6 +218,15 @@ LoadConst
Load the constant at `const_index` from the constant pool. The result is saved to register `dst`.
LoadConsti
^^^^^^^^^^
**Arguments**:
::
size_t val
RegName dst
Load the constant integer `val` to register `dst`. The result is a 0-rank tensor.
Object Representation
~~~~~~~~~~~~~~~~~~~~~
We use a simple object representation that uses shared pointers and tagging.
...
...
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