Skip to content

Commit

Permalink
Fix Predictor::Predict compile error due to refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
olokobayusuf committed May 14, 2024
1 parent e3c42a2 commit c7d8e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 0.0.19
*INCOMPLETE*
+ Fixed compile error in `Predictor::Predict` C++ API method.

## 0.0.18
+ Added experimental streaming support with `FXNPredictorStreamPrediction` function.
Expand Down
2 changes: 1 addition & 1 deletion include/Function/cxx/API.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ inline Predictor& Predictor::operator= (Predictor&& other) noexcept {

inline Prediction Predictor::operator() (const ValueMap& inputs) const {
FXNPrediction* prediction = nullptr;
FXNPredictorPredict(predictor, inputs, &prediction);
FXNPredictorCreatePrediction(predictor, inputs, &prediction);
return Prediction(prediction, true);
}
#pragma endregion
Expand Down

0 comments on commit c7d8e35

Please sign in to comment.