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
176ffe50
Commit
176ffe50
authored
Feb 11, 2020
by
tqchen
Committed by
Tianqi Chen
Feb 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCS][PY] Sphinx docs about tvm.ir
parent
a5661611
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
15 deletions
+16
-15
docs/api/python/index.rst
+3
-6
docs/api/python/ir.rst
+4
-3
docs/api/python/runtime.rst
+1
-1
docs/conf.py
+3
-0
python/tvm/ir/__init__.py
+2
-2
python/tvm/ir/module.py
+3
-3
No files found.
docs/api/python/index.rst
View file @
176ffe50
...
@@ -24,21 +24,18 @@ Python API
...
@@ -24,21 +24,18 @@ Python API
tvm
tvm
runtime
runtime
ndarray
ndarray
error
ir
intrin
intrin
tensor
tensor
schedule
schedule
target
target
build
build
module
error
container
function
function
autotvm
autotvm
graph_runtime
rpc
rpc
bridge
contrib
contrib
ffi
graph_runtime
dev
dev
topi
topi
vta/index
vta/index
...
...
docs/api/python/
containe
r.rst
→
docs/api/python/
i
r.rst
View file @
176ffe50
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
specific language governing permissions and limitations
specific language governing permissions and limitations
under the License.
under the License.
tvm.
containe
r
tvm.
i
r
------
-------
------
.. automodule:: tvm.
containe
r
.. automodule:: tvm.
i
r
:members:
:members:
:imported-members:
docs/api/python/runtime.rst
View file @
176ffe50
...
@@ -20,9 +20,9 @@ tvm.runtime
...
@@ -20,9 +20,9 @@ tvm.runtime
.. automodule:: tvm.runtime
.. automodule:: tvm.runtime
.. autoclass:: tvm.runtime.PackedFunc
.. autoclass:: tvm.runtime.PackedFunc
:members:
:members:
:inheritated-members:
.. autofunction:: tvm.register_func
.. autofunction:: tvm.register_func
...
...
docs/conf.py
View file @
176ffe50
...
@@ -139,6 +139,9 @@ pygments_style = 'sphinx'
...
@@ -139,6 +139,9 @@ pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos
=
False
todo_include_todos
=
False
# sort autodoc order by the source file.
autodoc_member_order
=
'bysource'
# -- Options for HTML output ----------------------------------------------
# -- Options for HTML output ----------------------------------------------
# The theme is set by the make target
# The theme is set by the make target
...
...
python/tvm/ir/__init__.py
View file @
176ffe50
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
# pylint: disable=unused-import
# pylint: disable=unused-import
"""Common data structures across all IR variants."""
"""Common data structures across all IR variants."""
from
.base
import
SourceName
,
Span
,
Node
,
EnvFunc
,
load_json
,
save_json
from
.base
import
SourceName
,
Span
,
Node
,
EnvFunc
,
load_json
,
save_json
from
.expr
import
BaseExpr
,
PrimExpr
,
RelayExpr
,
GlobalVar
,
BaseFunc
,
Range
from
.type
import
Type
,
TypeKind
,
TypeVar
,
GlobalTypeVar
,
TupleType
from
.type
import
Type
,
TypeKind
,
TypeVar
,
GlobalTypeVar
,
TupleType
from
.type
import
TypeConstraint
,
FuncType
,
IncompleteType
,
RelayRefType
from
.type
import
TypeConstraint
,
FuncType
,
IncompleteType
,
RelayRefType
from
.type_relation
import
TypeCall
,
TypeRelation
from
.tensor_type
import
TensorType
from
.tensor_type
import
TensorType
from
.type_relation
import
TypeCall
,
TypeRelation
from
.expr
import
BaseExpr
,
PrimExpr
,
RelayExpr
,
GlobalVar
,
BaseFunc
,
Range
from
.adt
import
Constructor
,
TypeData
from
.adt
import
Constructor
,
TypeData
from
.module
import
IRModule
from
.module
import
IRModule
from
.attrs
import
Attrs
from
.attrs
import
Attrs
...
...
python/tvm/ir/module.py
View file @
176ffe50
...
@@ -112,7 +112,7 @@ class IRModule(Node):
...
@@ -112,7 +112,7 @@ class IRModule(Node):
Parameters
Parameters
----------
----------
other: Module
other:
IR
Module
The module to merge into the current Module.
The module to merge into the current Module.
"""
"""
if
isinstance
(
other
,
dict
):
if
isinstance
(
other
,
dict
):
...
@@ -143,7 +143,7 @@ class IRModule(Node):
...
@@ -143,7 +143,7 @@ class IRModule(Node):
Returns
Returns
-------
-------
global_vars:
tvm.
Array[GlobalVar]
global_vars: Array[GlobalVar]
An array of global vars.
An array of global vars.
"""
"""
return
_ffi_api
.
Module_GetGlobalVars
(
self
)
return
_ffi_api
.
Module_GetGlobalVars
(
self
)
...
@@ -153,7 +153,7 @@ class IRModule(Node):
...
@@ -153,7 +153,7 @@ class IRModule(Node):
Returns
Returns
-------
-------
global_type_vars:
tvm.
Array[GlobalTypeVar]
global_type_vars: Array[GlobalTypeVar]
An array of global type vars.
An array of global type vars.
"""
"""
return
_ffi_api
.
Module_GetGlobalTypeVars
(
self
)
return
_ffi_api
.
Module_GetGlobalTypeVars
(
self
)
...
...
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