mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Remove support for Solver::Options::solver_log.
This is not really used and if needed can be implemented in user code. Change-Id: I56328d51c9d3788f90c751ff9c3a5937989f6ee0
This commit is contained in:
committed by
Keir Mierle
parent
558ee40ee1
commit
b766177bab
@@ -1522,17 +1522,6 @@ elimination group [LiSaad]_.
|
||||
iteration. This setting is useful when building an interactive
|
||||
application using Ceres and using an :class:`IterationCallback`.
|
||||
|
||||
.. member:: string Solver::Options::solver_log
|
||||
|
||||
Default: ``empty``
|
||||
|
||||
If non-empty, a summary of the execution of the solver is recorded
|
||||
to this file. This file is used for recording and Ceres'
|
||||
performance. Currently, only the iteration number, total time and
|
||||
the objective function value are logged. The format of this file is
|
||||
expected to change over time as the performance evaluation
|
||||
framework is fleshed out.
|
||||
|
||||
:class:`ParameterBlockOrdering`
|
||||
-------------------------------
|
||||
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
Releases
|
||||
========
|
||||
|
||||
HEAD
|
||||
====
|
||||
|
||||
Backward Incompatible API Changes
|
||||
---------------------------------
|
||||
|
||||
#. ``Solver::Options::solver_log`` has been removed. If needed this
|
||||
iteration callback can easily be implemented in user code.
|
||||
|
||||
|
||||
1.9.0
|
||||
=====
|
||||
|
||||
|
||||
@@ -116,7 +116,6 @@ DEFINE_double(point_sigma, 0.0, "Standard deviation of the point "
|
||||
DEFINE_int32(random_seed, 38401, "Random seed used to set the state "
|
||||
"of the pseudo random number generator used to generate "
|
||||
"the pertubations.");
|
||||
DEFINE_string(solver_log, "", "File to record the solver execution to.");
|
||||
DEFINE_bool(line_search, false, "Use a line search instead of trust region "
|
||||
"algorithm.");
|
||||
|
||||
@@ -320,7 +319,6 @@ void SolveProblem(const char* filename) {
|
||||
BuildProblem(&bal_problem, &problem);
|
||||
Solver::Options options;
|
||||
SetSolverOptionsFromFlags(&bal_problem, &options);
|
||||
options.solver_log = FLAGS_solver_log;
|
||||
options.gradient_tolerance = 1e-16;
|
||||
options.function_tolerance = 1e-16;
|
||||
Solver::Summary summary;
|
||||
|
||||
@@ -708,10 +708,6 @@ class CERES_EXPORT Solver {
|
||||
//
|
||||
// The solver does NOT take ownership of these pointers.
|
||||
vector<IterationCallback*> callbacks;
|
||||
|
||||
// If non-empty, a summary of the execution of the solver is
|
||||
// recorded to this file.
|
||||
string solver_log;
|
||||
};
|
||||
|
||||
struct CERES_EXPORT Summary {
|
||||
|
||||
@@ -422,13 +422,6 @@ void SolverImpl::TrustRegionMinimize(
|
||||
// vector.
|
||||
program->ParameterBlocksToStateVector(parameters.data());
|
||||
|
||||
scoped_ptr<IterationCallback> file_logging_callback;
|
||||
if (!options.solver_log.empty()) {
|
||||
file_logging_callback.reset(new FileLoggingCallback(options.solver_log));
|
||||
minimizer_options.callbacks.insert(minimizer_options.callbacks.begin(),
|
||||
file_logging_callback.get());
|
||||
}
|
||||
|
||||
TrustRegionLoggingCallback logging_callback(
|
||||
options.minimizer_progress_to_stdout);
|
||||
if (options.logging_type != SILENT) {
|
||||
@@ -494,15 +487,6 @@ void SolverImpl::LineSearchMinimize(
|
||||
// Collect the discontiguous parameters into a contiguous state vector.
|
||||
program->ParameterBlocksToStateVector(parameters.data());
|
||||
|
||||
// TODO(sameeragarwal): Add support for logging the configuration
|
||||
// and more detailed stats.
|
||||
scoped_ptr<IterationCallback> file_logging_callback;
|
||||
if (!options.solver_log.empty()) {
|
||||
file_logging_callback.reset(new FileLoggingCallback(options.solver_log));
|
||||
minimizer_options.callbacks.insert(minimizer_options.callbacks.begin(),
|
||||
file_logging_callback.get());
|
||||
}
|
||||
|
||||
LineSearchLoggingCallback logging_callback(
|
||||
options.minimizer_progress_to_stdout);
|
||||
if (options.logging_type != SILENT) {
|
||||
|
||||
Reference in New Issue
Block a user