leleamol commented on a change in pull request #13680: [MXNET-1121] Example to 
demonstrate the inference workflow using RNN
URL: https://github.com/apache/incubator-mxnet/pull/13680#discussion_r246519653
 
 

 ##########
 File path: cpp-package/example/inference/README.md
 ##########
 @@ -39,3 +39,35 @@ Alternatively, The script 
[unit_test_inception_inference.sh](<https://github.com
 ```
 ./unit_test_inception_inference.sh
 ```
+
+### 
[simple_rnn.cpp](<https://github.com/apache/incubator-mxnet/blob/master/cpp-package/example/inference/simple_rnn.cpp>)
+This example demonstrates sequence prediction workflow with pre-trained RNN 
model using MXNet C++ API. The purpose of this example is to demonstrate how 
pre-trained RNN model can be loaded and used to generate an output sequence 
using C++ API.
+The example performs following tasks.
+- Load the pre-trained RNN model,
+- Load the dictionary file that contains word to index mapping.
+- Convert the input string to vector of indices and padded to match the input 
data length.
+- Run the forward pass and predict the output string.
+
+The example uses a pre-trained RNN model that is trained with the dataset 
containing speeches given by Obama. The model files can be found here.
+- 
[obama-speaks-symbol.json](<https://s3.amazonaws.com/mxnet-cpp/RNN_model/obama-speaks-symbol.json>)
+- 
[obama-speaks-0100.params](<https://s3.amazonaws.com/mxnet-cpp/RNN_model/obama-speaks-0100.params>)
+- 
[obama.dictionary.txt](<https://s3.amazonaws.com/mxnet-cpp/RNN_model/obama.dictionary.txt>)
 Each line of the dictionary file contains a word and an unique index for that 
word separated by a space. This dictionary file is created when the RNN model 
was trained with a particular dataset.
+
+The example downloads the above files while running. The example is 
intentionally kept specific to a certain model because:
 
 Review comment:
   Fixed.

----------------------------------------------------------------
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

Reply via email to