Getting Started With Arm NN
This page details how to get started with Arm NN. The instructions assume that you are using Ubuntu 16.04, but these instructions should work on most Linux distributions.
Update the apt repository
Before we use the Ubuntu apt repository, we need to make sure it is up-to-date. From a terminal, enter the following command:
$ sudo apt update
Create a GitHub account
You will need to create a GitHub account in order to log into the ML Platform gerrit server. Your GitHub account is created with your email address.
Login to ML Platform gerrit server and add SSH key
Login to the ML Platform gerrit server using your github credentials, then add your ssh key (see details below).
Generating and SSH key
Before getting the source, you will need to setup an SSH key for yourself. From a terminal, enter the following commands:
$ ssh-keygen
When prompted for a file location, press enter without any path to use the default. This should default to something like /home/username/.ssh/id_rsa.
You will then be prompted for a pass phrase. Use some memorable passphrase because you will need to enter it whenever you use the SSH key.
Now change the current directory to the one mentioned above. There should be two files: id_rsa and id_rsa.pub.
Installing the SSH key for https://review.mlplatform.org
In order to connect to the Linaro MLPlatform gerrit server via SSH, you will need to register your public key that was generated above. Open the id_rsa.pub file generated in the previous step in a text editor of your choice and copy the contents to the clipboard.
Go to https://review.mlplatform.org/#/settings/ssh-keys and log in using your credentials. Paste the clipboard contents into the textbox as seen below. Click Add.
{F84}
Install git
If you do not have git installed on your Ubuntu system, you must install it. On Ubuntu 16.04 this can be done with the commands:
$ sudo apt-get update $ sudo apt-get install git
Getting the Development Environment source
Now that we have registered our SSH key with the gerrit repository, we can clone the repository onto your machine. In the following example, we will create a dev folder in our home folder and clone the repos there.
Go into the folder where you want to have the ARM NN Development Enviroment copied into (e.g. ~/dev).
$ git clone ssh://$GITHUB_USERNAME@review.mlplatform.org:29418/ml/armnn && scp -p -P 29418 $GITHUB_USERNAME@review.mlplatform.org:hooks/commit-msg .git/hooks/ $ git clone ssh://$GITHUB_USERNAME@review.mlplatform.org:29418/ml/android-nn-driver && scp -p -P 29418 $GITHUB_USERNAME@review.mlplatform.org:hooks/commit-msg .git/hooks/
- Last Author
- brianjoycearm
- Last Edited
- Jun 10 2019, 10:43 AM