You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NNVM is a reusable computational graph optimization and compilation stack for deep learning systems.
7
-
NNVM provides modules to:
6
+
NNVM is a reusable computational graph optimization and compilation stack for deep learning systems. It provides modules to:
8
7
9
8
- Represent deep learning workloads from front-end frameworks via a graph IR.
10
9
- Optimize computation graphs to improve performance.
11
10
- Compile into executable modules and deploy to different hardware backends with minimum dependency.
12
11
13
-
NNVM is designed to add new frontend, operators and graph optimizations in a decentralized fashion without changing the core interface. NNVM is part of [TVM stack](https://github.com/dmlc/tvm), which provides an end to end IR compilation stack for deploying deep learning workloads into different hardware backends
12
+
NNVM is designed to add new frontend, operators and graph optimizations in a decentralized fashion without changing the core interface. NNVM is part of [TVM stack](https://github.com/dmlc/tvm). NNVM compiler toolchain can target hardware backends supported by TVM.
13
+
The compiled module can be deployed to server, mobile, embedded devices and browsers with minimum dependency, in languages including c++, python, javascript, java, objective-c.
14
+
15
+
The following code snippet demonstrates the general workflow of nnvm compiler toolchain.
16
+
17
+
```python
18
+
import tvm
19
+
from tvm.contrib import graph_runtime, rpc
20
+
import nnvm.frontend
21
+
import nnvm.compiler
22
+
23
+
# get model from frameworks
24
+
# change xyz to supported framework name.
25
+
graph, params = nnvm.frontend.from_xyz(...)
26
+
27
+
# optimize and compile the graph to get a deployable module
28
+
# target can be "opencl", "llvm", "metal" or any target supported by tvm
0 commit comments