Skip to content

Commit f160411

Browse files
committed
update
1 parent 6742c56 commit f160411

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

include/solver/cuda_cfr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class CudaCFR : public SliceCFR {
7878
virtual void clear_root_cfv();
7979
virtual void post_process();
8080
virtual vector<vector<float>> get_avg_strategy(int idx);
81+
virtual vector<vector<float>> get_ev(int idx);
82+
virtual void cfv_to_ev();
8183
};
8284

8385
#endif // _CUDA_CFR_H_

include/solver/slice_cfr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class SliceCFR : public Solver {
196196
virtual vector<vector<float>> get_avg_strategy(int idx);// [n_hand,n_act]
197197
virtual vector<vector<float>> get_ev(int idx);// [n_hand,n_act]
198198
bool print_exploitability(int iter, Timer &timer);
199-
void cfv_to_ev();
199+
virtual void cfv_to_ev();
200200
void cfv_to_ev(Node *node, int player);
201201
void get_prob_sum(vector<float> &prob_sum, float &sum, int player, float *reach_prob, size_t board);
202202
void output_data(ActionNode *node, vector<Card> &cards, vector<vector<vector<float>>> &out, bool ev);

src/solver/cuda_cfr.cu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,8 @@ vector<vector<float>> CudaCFR::get_avg_strategy(int idx) {
343343
}
344344
}
345345
return strategy;
346-
}
346+
}
347+
vector<vector<float>> CudaCFR::get_ev(int idx) {
348+
return {};
349+
}
350+
void CudaCFR::cfv_to_ev() {}

0 commit comments

Comments
 (0)