diff --git a/include/solver/cuda_cfr.h b/include/solver/cuda_cfr.h index 42a01b7..6b3b010 100644 --- a/include/solver/cuda_cfr.h +++ b/include/solver/cuda_cfr.h @@ -78,6 +78,8 @@ class CudaCFR : public SliceCFR { virtual void clear_root_cfv(); virtual void post_process(); virtual vector> get_avg_strategy(int idx); + virtual vector> get_ev(int idx); + virtual void cfv_to_ev(); }; #endif // _CUDA_CFR_H_ diff --git a/include/solver/slice_cfr.h b/include/solver/slice_cfr.h index 3837729..231f09f 100644 --- a/include/solver/slice_cfr.h +++ b/include/solver/slice_cfr.h @@ -196,7 +196,7 @@ class SliceCFR : public Solver { virtual vector> get_avg_strategy(int idx);// [n_hand,n_act] virtual vector> get_ev(int idx);// [n_hand,n_act] bool print_exploitability(int iter, Timer &timer); - void cfv_to_ev(); + virtual void cfv_to_ev(); void cfv_to_ev(Node *node, int player); void get_prob_sum(vector &prob_sum, float &sum, int player, float *reach_prob, size_t board); void output_data(ActionNode *node, vector &cards, vector>> &out, bool ev); diff --git a/src/solver/cuda_cfr.cu b/src/solver/cuda_cfr.cu index 4c12942..dcd3a3b 100644 --- a/src/solver/cuda_cfr.cu +++ b/src/solver/cuda_cfr.cu @@ -343,4 +343,8 @@ vector> CudaCFR::get_avg_strategy(int idx) { } } return strategy; -} \ No newline at end of file +} +vector> CudaCFR::get_ev(int idx) { + return {}; +} +void CudaCFR::cfv_to_ev() {}