Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Example] Update cpp example README #13280

Merged
merged 23 commits into from
Nov 16, 2018
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a9d40c4
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 18, 2018
429684a
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 19, 2018
602b7d0
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 20, 2018
85f9408
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 27, 2018
5a01234
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 28, 2018
8f58746
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Sep 28, 2018
1531594
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 2, 2018
3e799de
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 8, 2018
f690c69
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 8, 2018
a091a97
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 9, 2018
f1359be
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 11, 2018
e360853
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 11, 2018
23199d1
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 12, 2018
166c2b6
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 16, 2018
d01e8cb
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 24, 2018
0454017
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Oct 26, 2018
90f1dd8
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Nov 1, 2018
2f019cd
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Nov 6, 2018
ec075f5
Merge branch 'master' of https://github.com/apache/incubator-mxnet
stu1130 Nov 13, 2018
8bfcba1
update the README to solve the library cannot find problem
stu1130 Nov 15, 2018
b9384bc
fix the broken format
stu1130 Nov 15, 2018
4b2099e
remove redundancy and broken format
stu1130 Nov 15, 2018
695155c
add .
stu1130 Nov 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cpp-package/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ The makefile will also download the necessary data files and store in a data fol

## Examples

This directory contains following examples. In order to run the examples, ensure that the path to the MXNet shared library is added to the OS specific environment variable viz. **LD\_LIBRARY\_PATH** for Linux, Mac and Ubuntu OS and **PATH** for Windows OS.
This directory contains following examples. In order to run the examples, ensure that the path to the MXNet shared library is added to the OS specific environment variable viz. **LD\_LIBRARY\_PATH** for Linux, Mac and Ubuntu OS and **PATH** for Windows OS. For example `export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/home/ubuntu/incubator-mxnet/lib` on ubuntu using gpu.

### [alexnet.cpp](<https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/alexnet.cpp>)

The example implements the C++ version of AlexNet. The networks trains on MNIST data. The number of epochs can be specified as a command line argument. For example to train with 10 epochs use the following:

```
build/alexnet 10
```
```
build/alexnet 10
```

### [googlenet.cpp](<https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/googlenet.cpp>)

Expand Down Expand Up @@ -97,7 +97,7 @@ build/lenet_with_mxdataiter 10

In addition, there is `run_lenet_with_mxdataiter.sh` that downloads the mnist data and run `lenet_with_mxdataiter` example.

###[inception_bn.cpp](<https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/inception_bn.cpp>)
### [inception_bn.cpp](<https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/inception_bn.cpp>)

The code implements an Inception network using the C++ API with batch normalization. The example uses MNIST data to train the network. The model trains for 100 epochs. The example can be run by executing the following command:

Expand Down