frankfliu commented on a change in pull request #13828: Add error checking for 
cpp examples.
URL: https://github.com/apache/incubator-mxnet/pull/13828#discussion_r246844882
 
 

 ##########
 File path: cpp-package/example/alexnet.cpp
 ##########
 @@ -244,10 +244,14 @@ int main(int argc, char const *argv[]) {
                               };
 
   auto train_iter =  MXDataIter("MNISTIter");
-  setDataIter(&train_iter, "Train", data_files, batch_size);
+  if (!setDataIter(&train_iter, "Train", data_files, batch_size)) {
+    return 1;
 
 Review comment:
   The error message already printed in check_datafiles()

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