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:09:15 UTC

[incubator-mxnet] branch master updated: [Example]Refactor alexnet cpp example (#13278)

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 4f481f5  [Example]Refactor alexnet cpp example (#13278)
4f481f5 is described below

commit 4f481f523b9b66b6fcc5d57d2a272ab829c659d2
Author: Jake Lee <gs...@gmail.com>
AuthorDate: Tue Nov 20 18:09:02 2018 -0800

    [Example]Refactor alexnet cpp example (#13278)
    
    * delete print to make the log more clean
    
    * delete the log user don't need
---
 cpp-package/example/alexnet.cpp | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/cpp-package/example/alexnet.cpp b/cpp-package/example/alexnet.cpp
index 3d6e685..a5f4952 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"]);