leleamol commented on issue #12543: Complie error (not the mxnet itself. but cpp interface) URL: https://github.com/apache/incubator-mxnet/issues/12543#issuecomment-421177600 @s0302102 The code that is posted with this issue has some syntax errors that would have caused compilation issues. For example: 1. The #include in first line does not specify specific header files. 2. In the function definition "Symbol mlp(const vector &layers)", the datatype for vector is not specified. Changing it to "Symbol mlp(const std::vector<int> &layers)" would help. 3. In the implementation of "mlp()" function, explicitly qualifying "vector" with "std::vector<int>" would also help. I tried above fixes and the code worked with the latest code in mxnet repository. I also had to correct the paths such as ../data/train-images.idx3-ubyte for my setup. You can also refer to "mlp_cpu.cpp" example in "https://github.com/apache/incubator-mxnet/tree/master/cpp-package/example" folder
---------------------------------------------------------------- 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
