Skip to content

Commit

Permalink
Predict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyPerets106 authored and leondavi committed Jul 8, 2024
1 parent 9bb7c09 commit 17fb979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src_cpp/opennnBridge/nerlWorkerOpenNN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace nerlnet
}


void NerlWorkerOpenNN::post_predict_process(fTensor2DPtr result_ptr){
void NerlWorkerOpenNN::post_predict_process(fTensor2DPtr &result_ptr){
switch(_model_type){
case MODEL_TYPE_NN:
{
Expand Down
2 changes: 1 addition & 1 deletion src_cpp/opennnBridge/nerlWorkerOpenNN.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NerlWorkerOpenNN : public NerlWorker
std::shared_ptr<opennn::TrainingStrategy> get_training_strategy_ptr() { return _training_strategy_ptr; };
std::shared_ptr<opennn::DataSet> get_data_set() { return _data_set; };
void post_training_process(fTensor2DPtr TrainDataNNptr);
void post_predict_process(fTensor2DPtr result_ptr);
void post_predict_process(fTensor2DPtr &result_ptr);
void get_result_calc(fTensor2DPtr calculate_res,int num_of_samples,int inputs_number,fTensor2DPtr predictData);
void set_optimization_method(int optimizer_type ,int learning_rate);
void set_loss_method(int loss_method);
Expand Down

0 comments on commit 17fb979

Please sign in to comment.