Skip to content

Commit

Permalink
Merge branch '6021-fix_single_row_contention_v4' into 6021-fix_single…
Browse files Browse the repository at this point in the history
…_row_contention
  • Loading branch information
Ten0 committed Jan 12, 2024
2 parents 6db33b3 + 49d7217 commit b3848a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,9 @@ int LGBM_BoosterCalcNumPredict(BoosterHandle handle,

// TODO in future versions of LightGBM, public API named around `FastConfig` should be made named around
// `SingleRowPredictor`, because it is specific to single row prediction, and doesn't actually hold only config.
// At the same time, one should consider removing the old non-fast single row public API that stores its Predictor
// in the Booster, because that will enable removing these Predictors from the Booster, and associated initialization
// code.
int LGBM_FastConfigFree(FastConfigHandle fastConfig) {
API_BEGIN();
delete reinterpret_cast<SingleRowPredictor*>(fastConfig);
Expand Down

0 comments on commit b3848a5

Please sign in to comment.