@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 [ Full content available at: https://github.com/apache/incubator-mxnet/issues/12543 ] This message was relayed via gitbox.apache.org for [email protected]
