You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently added example_dnn_nsga2 causes 2 types of errors during the linking under g++:
../modules/nn2/example_dnn_nsga2.cpp: In member function 'void FitXOR<Params, Exact>::eval(Indiv&)':
../modules/nn2/example_dnn_nsga2.cpp:156:25: error: 'powf' is not a member of 'std'
fit -= std::powf(outf[0] - outputs[i], 2.0);
../modules/nn2/example_dnn_nsga2.cpp:216:1: required from here
/git/sferes2/sferes/ea/crowd.hpp:171:23: error: ... FitXOR, Params> >' has no member named 'data'
assert((*it)->data().size() == (*it2)->data().size());
The text was updated successfully, but these errors were encountered:
As for the first problem: it seems to be gcc incompatibility, which can be solved by replacing all (2) std::powf calls with std::pow
As for the 2nd problem: it seems that the only purpose of the branch QD_nn 's existence is to counter this problem despite the fact that the example does not exist there. The solution is therefore to use changes of that branch. I locally merged it into master, but I understand there must have been a reason to keep things separate.
Recently added
example_dnn_nsga2
causes 2 types of errors during the linking under g++:../modules/nn2/example_dnn_nsga2.cpp: In member function 'void FitXOR<Params, Exact>::eval(Indiv&)':
../modules/nn2/example_dnn_nsga2.cpp:156:25: error: 'powf' is not a member of 'std'
fit -= std::powf(outf[0] - outputs[i], 2.0);
../modules/nn2/example_dnn_nsga2.cpp:216:1: required from here
/git/sferes2/sferes/ea/crowd.hpp:171:23: error: ... FitXOR, Params> >' has no member named 'data'
assert((*it)->data().size() == (*it2)->data().size());
The text was updated successfully, but these errors were encountered: