Skip to content

Commit 7b33b48

Browse files
committed
[DOCS][FRONTEND] Modify from_mxnet to also return params, update docs (apache#36)
1 parent 3dbdb84 commit 7b33b48

File tree

28 files changed

+224
-62
lines changed

28 files changed

+224
-62
lines changed

nnvm/docs/api/python/compiler.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
nnvm.compiler
2+
-------------
3+
4+
.. automodule:: nnvm.compiler
5+
6+
.. autofunction:: nnvm.compiler.build
7+
8+
.. autofunction:: nnvm.compiler.build_config
9+
10+
.. autofunction:: nnvm.compiler.optimize
11+
12+
.. automodule:: nnvm.compiler.graph_util
13+
:members:
14+
15+
.. automodule:: nnvm.compiler.graph_attr
16+
:members:
17+
18+
.. automodule:: nnvm.compiler.compile_engine
19+
:members:

nnvm/docs/api/python/frontend.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
nnvm.frontend
2+
-------------
3+
4+
.. automodule:: nnvm.frontend
5+
6+
7+
.. autofunction:: nnvm.frontend.from_mxnet

nnvm/docs/api/python/graph.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nnvm.graph
2+
----------
3+
.. automodule:: nnvm.graph
4+
5+
.. autofunction:: nnvm.graph.create
6+
7+
.. autoclass:: nnvm.graph.Graph
8+
:members:

nnvm/docs/api/python/index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Python API
2+
==========
3+
4+
This document contains the python API to NNVM compiler toolchain.
5+
For user
6+
7+
8+
.. toctree::
9+
:maxdepth: 2
10+
11+
compiler
12+
frontend
13+
runtime
14+
symbol
15+
graph
16+
top

nnvm/docs/api/python/runtime.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nnvm.runtime
2+
------------
3+
.. automodule:: nnvm.runtime
4+
5+
.. autofunction:: nnvm.runtime.create
6+
7+
.. autoclass:: nnvm.runtime.Module
8+
:members:

nnvm/docs/api/python/symbol.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
nnvm.symbol
2+
-----------
3+
.. automodule:: nnvm.symbol
4+
5+
.. autoclass:: nnvm.symbol.Symbol
6+
7+
.. autofunction:: nnvm.symbol.Group

nnvm/docs/api/python/top.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
nnvm.top
2+
--------
3+
.. automodule:: nnvm.top
4+
5+
.. autofunction:: register_compute
6+
7+
.. autofunction:: register_schedule
8+
9+
.. autofunction:: register_pattern
10+
11+
12+
.. autoclass:: nnvm.top.AttrDict
13+
:members:

nnvm/docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Contents
1111
self
1212
top
1313
tutorials/index
14+
api/python/index
1415
dev/index

nnvm/examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ NNVM Examples
22
=============
33
This folder contains example snippets of running NNVM Compilation.
44

5-
- See also [Tutorials](tutorials) for tutorials with detailed explainations.
5+
- See also [Tutorials](../tutorials) for tutorials with detailed explainations.

nnvm/python/nnvm/compiler/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
"""Namespace for NNVM-TVM compiler toolchain"""
1+
"""NNVM compiler toolchain.
2+
3+
User only need to use :any:`build` and :any:`build_config` to do the compilation.
4+
The other APIs are for more advanced interaction with the compiler toolchain.
5+
"""
26
from __future__ import absolute_import
37

48
import tvm
@@ -10,9 +14,6 @@
1014
from .. import symbol as _symbol
1115
from .. import graph as _graph
1216

13-
from .registry import OpPattern
14-
from .registry import register_compute, register_schedule, register_pattern
15-
1617
from .. import top as _top
1718

1819

0 commit comments

Comments
 (0)