From 8bfcba182b7c90e01e3e2e3f7a996a9cdb3d2f7b Mon Sep 17 00:00:00 2001 From: stu1130 Date: Wed, 14 Nov 2018 17:22:34 -0800 Subject: [PATCH 1/4] update the README to solve the library cannot find problem --- cpp-package/example/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp-package/example/README.md b/cpp-package/example/README.md index 64f604469a72..c02cfb592fb0 100644 --- a/cpp-package/example/README.md +++ b/cpp-package/example/README.md @@ -16,6 +16,7 @@ By default, the examples are built to be run on GPU. To build examples to run on The examples that are built to be run on GPU may not work on the non-GPU machines. The makefile will also download the necessary data files and store in a data folder. (The download will take couple of minutes, but will be done only once on a fresh installation.) +Before runing examples, make sure **LD\_LIBRARY\_PATH** environment variable setup correctly. For example `export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/home/ubuntu/incubator-mxnet/lib` on ubuntu using gpu. ## Examples From b9384bc5a4dcc883c3efab845bf4879e2cd77481 Mon Sep 17 00:00:00 2001 From: stu1130 Date: Wed, 14 Nov 2018 22:21:54 -0800 Subject: [PATCH 2/4] fix the broken format --- cpp-package/example/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp-package/example/README.md b/cpp-package/example/README.md index c02cfb592fb0..bb3589e7a012 100644 --- a/cpp-package/example/README.md +++ b/cpp-package/example/README.md @@ -27,9 +27,9 @@ This directory contains following examples. In order to run the examples, ensure 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]() From 4b2099e98338691e8dd6854a2d5bdfa8388c7e88 Mon Sep 17 00:00:00 2001 From: stu1130 Date: Thu, 15 Nov 2018 11:04:35 -0800 Subject: [PATCH 3/4] remove redundancy and broken format --- cpp-package/example/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp-package/example/README.md b/cpp-package/example/README.md index bb3589e7a012..cf1fdcb27763 100644 --- a/cpp-package/example/README.md +++ b/cpp-package/example/README.md @@ -16,12 +16,11 @@ By default, the examples are built to be run on GPU. To build examples to run on The examples that are built to be run on GPU may not work on the non-GPU machines. The makefile will also download the necessary data files and store in a data folder. (The download will take couple of minutes, but will be done only once on a fresh installation.) -Before runing examples, make sure **LD\_LIBRARY\_PATH** environment variable setup correctly. For example `export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/home/ubuntu/incubator-mxnet/lib` on ubuntu using gpu. ## 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]() @@ -98,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]() +### [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: From 695155c84c057513f189468ee043a5472968099f Mon Sep 17 00:00:00 2001 From: stu1130 Date: Thu, 15 Nov 2018 11:05:40 -0800 Subject: [PATCH 4/4] add . --- cpp-package/example/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-package/example/README.md b/cpp-package/example/README.md index cf1fdcb27763..06ea17bbc1f1 100644 --- a/cpp-package/example/README.md +++ b/cpp-package/example/README.md @@ -20,7 +20,7 @@ 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. For example `export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/home/ubuntu/incubator-mxnet/lib` on ubuntu using gpu +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]()