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
When removing constant residual blocks from a program as part of the preprocesser, we evaluate the "fixed" part of the cost of the problem, and this requires calling ResidualBlock::Evaluate. This works fine if no EvaluationCallback is associated with the problem. But if one is, then for correctness it needs to be called before Evaluate is called.
The text was updated successfully, but these errors were encountered:
Fixe a subtle bug in Program::RemoveFixedBlocks, where we call
ResidualBlock::Evaluate on residual blocks with all constant parameter
blocks without paying attention to the presence of an
EvaluationCallback.
In the process also run clang-format on some of the files touched by
this change.
#482
Change-Id: I342b66f6f975fdee2eef139a31f24d4a3e568e84
When removing constant residual blocks from a program as part of the preprocesser, we evaluate the "fixed" part of the cost of the problem, and this requires calling ResidualBlock::Evaluate. This works fine if no EvaluationCallback is associated with the problem. But if one is, then for correctness it needs to be called before Evaluate is called.
The text was updated successfully, but these errors were encountered: