You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/03/22 17:46:37 UTC

[GitHub] aravindhv10 commented on issue #10198: Using MXNet in c++

aravindhv10 commented on issue #10198: Using MXNet in c++
URL: https://github.com/apache/incubator-mxnet/issues/10198#issuecomment-375397808
 
 
   Hello,
   
        Thanks for your reply !
        The specific error I have is:
   
   Inside the cpp-package/example folder, (after copying libmxnet.so), running make leads to :
   
   $ make
   g++ -std=c++0x -I../../include -I../../nnvm/include -I../../dmlc-core/include -I../include -o alexnet alexnet.cpp -L. -lmxnet
   g++ -std=c++0x -I../../include -I../../nnvm/include -I../../dmlc-core/include -I../include -o mlp_cpu mlp_cpu.cpp -L. -lmxnet
   mlp_cpu.cpp: In function ‘mxnet::cpp::Symbol mlp(const std::vector<int>&)’:
   mlp_cpu.cpp:44:16: error: ‘FullyConnected’ was not declared in this scope
          layers[i]);
                   ^
   mlp_cpu.cpp:45:61: error: ‘ActivationActType’ has not been declared
        outputs[i] = i == layers.size()-1 ? fc : Activation(fc, ActivationActType::kRelu);
                                                                ^~~~~~~~~~~~~~~~~
   mlp_cpu.cpp:48:45: error: ‘SoftmaxOutput’ was not declared in this scope
      return SoftmaxOutput(outputs.back(), label);
                                                ^
   Makefile:30: recipe for target 'mlp_cpu' failed
   make: *** [mlp_cpu] Error 1
   
   I am using debian stable with gcc 6.3
   gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 in case this matters.
   
   I checked all the c++ and header files for the function / class definition of ‘FullyConnected’ but could not find it. Is this generated when mxnet is built from source ?
   
   Thanks and Regards
   Aravind

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services