nswamy closed pull request #13278: [Example]Refactor alexnet cpp example
URL: https://github.com/apache/incubator-mxnet/pull/13278
 
 
   

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/cpp-package/example/alexnet.cpp b/cpp-package/example/alexnet.cpp
index 3d6e6855b64..a5f4952ac98 100644
--- a/cpp-package/example/alexnet.cpp
+++ b/cpp-package/example/alexnet.cpp
@@ -234,15 +234,6 @@ int main(int argc, char const *argv[]) {
      * initializer to call*/
     xavier(arg.first, &arg.second);
   }
-  /*print out to check the shape of the net*/
-  for (const auto &s : Net.ListArguments()) {
-    LG << s;
-    const auto &k = args_map[s].GetShape();
-    for (const auto &i : k) {
-      std::cout << i << " ";
-    }
-    std::cout << std::endl;
-  }
 
   /*these binary files should be generated using im2rc tools, which can be 
found
    * in mxnet/bin*/
@@ -275,7 +266,6 @@ int main(int argc, char const *argv[]) {
     train_iter.Reset();
     while (train_iter.Next()) {
       auto batch = train_iter.GetDataBatch();
-      LG << train_iter.GetDataBatch().index.size();
       /*use copyto to feed new data and label to the executor*/
       batch.data.CopyTo(&args_map["data"]);
       batch.label.CopyTo(&args_map["label"]);


 

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