nswamy closed pull request #13317: [Example] Update C++ tutorials (#13316) URL: https://github.com/apache/incubator-mxnet/pull/13317
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/tutorials/c++/basics.md b/docs/tutorials/c++/basics.md index d3231e7a1ff..aa73a7363b1 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(); ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
