You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ns...@apache.org on 2018/11/21 02:10:33 UTC

[incubator-mxnet] branch master updated: [Example] Update C++ tutorials (#13316) (#13317)

This is an automated email from the ASF dual-hosted git repository.

nswamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e888c1  [Example] Update C++ tutorials (#13316) (#13317)
8e888c1 is described below

commit 8e888c124149158d20a2b65fa2583ded55839087
Author: zhaoyao73 <zh...@users.noreply.github.com>
AuthorDate: Tue Nov 20 21:10:20 2018 -0500

    [Example] Update C++ tutorials (#13316) (#13317)
    
    Update C++ tutorials up to date
---
 docs/tutorials/c++/basics.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/tutorials/c++/basics.md b/docs/tutorials/c++/basics.md
index d3231e7..aa73a73 100644
--- a/docs/tutorials/c++/basics.md
+++ b/docs/tutorials/c++/basics.md
@@ -8,9 +8,9 @@ The following contents assume that the working directory is `/path/to/mxnet/cpp-
 
 Load Data
 --------
-Before going into codes, we need to fetch MNIST data. You can either use the script `get_mnist.sh`,
+Before going into codes, we need to fetch MNIST data. You can either use the script `/path/to/mxnet/cpp-package/example/get_data.sh`,
 or download mnist data by yourself from Lecun's [website](http://yann.lecun.com/exdb/mnist/)
-and decompress them into `mnist_data` folder.
+and decompress them into `data/mnist_data` folder.
 
 Except linking the MXNet shared library, the C++ package itself is a header-only package,
 which means all you need to do is to include the header files. Among the header files,
@@ -36,14 +36,14 @@ The digits in MNIST are 2-dimension arrays, so we should set `flat` to true to f
 
 ```cpp
 auto train_iter = MXDataIter("MNISTIter")
-    .SetParam("image", "./mnist_data/train-images-idx3-ubyte")
-    .SetParam("label", "./mnist_data/train-labels-idx1-ubyte")
+    .SetParam("image", "./data/mnist_data/train-images-idx3-ubyte")
+    .SetParam("label", "./data/mnist_data/train-labels-idx1-ubyte")
     .SetParam("batch_size", batch_size)
     .SetParam("flat", 1)
     .CreateDataIter();
 auto val_iter = MXDataIter("MNISTIter")
-    .SetParam("image", "./mnist_data/t10k-images-idx3-ubyte")
-    .SetParam("label", "./mnist_data/t10k-labels-idx1-ubyte")
+    .SetParam("image", "./data/mnist_data/t10k-images-idx3-ubyte")
+    .SetParam("label", "./data/mnist_data/t10k-labels-idx1-ubyte")
     .SetParam("batch_size", batch_size)
     .SetParam("flat", 1)
     .CreateDataIter();