This guide is tested under Ubuntu 16.04 & 18.04, with or without Nvidia/AMD GPU installed.
Users can build from source code in your native system or in a docker container.
-
Clone a copy of the repo:
git clone https://github.com/microsoft/nnfusion.git -
Install dependencies:
Install dependencies by use the script (need sudo):
./maint/script/install_dependency.sh -
Use cmake to config and build:
mkdir build && cd build && cmake .. && make -j6 -
Use nnfusion CLI:
Nnfusion CLI could be installed in system by make install, or use
./build/src/tools/nnfusion/nnfusioninstead. You can refer to NNFusion Client Tutorial to learn about NNFusion client. -
Run test:
Please see End to End Test.
After building and installing NNFusion, please refer to Compile Guide and Tool Usage to learn how to compile or optimize a DNN model.