24 proto::CeresSolverOptions proto;
25 proto.set_use_nonmonotonic_steps(
26 parameter_dictionary->
GetBool(
"use_nonmonotonic_steps"));
27 proto.set_max_num_iterations(
30 CHECK_GT(proto.max_num_iterations(), 0);
31 CHECK_GT(proto.num_threads(), 0);
36 const proto::CeresSolverOptions& proto) {
37 ceres::Solver::Options options;
38 options.use_nonmonotonic_steps = proto.use_nonmonotonic_steps();
39 options.max_num_iterations = proto.max_num_iterations();
40 options.num_threads = proto.num_threads();
int GetNonNegativeInt(const std::string &key)
ceres::Solver::Options CreateCeresSolverOptions(const proto::CeresSolverOptions &proto)
proto::CeresSolverOptions CreateCeresSolverOptionsProto(common::LuaParameterDictionary *parameter_dictionary)
bool GetBool(const std::string &key)