Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yffbit committed Jun 1, 2024
1 parent 6742c56 commit f160411
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/solver/cuda_cfr.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class CudaCFR : public SliceCFR {
virtual void clear_root_cfv();
virtual void post_process();
virtual vector<vector<float>> get_avg_strategy(int idx);
virtual vector<vector<float>> get_ev(int idx);
virtual void cfv_to_ev();
};

#endif // _CUDA_CFR_H_
2 changes: 1 addition & 1 deletion include/solver/slice_cfr.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class SliceCFR : public Solver {
virtual vector<vector<float>> get_avg_strategy(int idx);// [n_hand,n_act]
virtual vector<vector<float>> 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<float> &prob_sum, float &sum, int player, float *reach_prob, size_t board);
void output_data(ActionNode *node, vector<Card> &cards, vector<vector<vector<float>>> &out, bool ev);
Expand Down
6 changes: 5 additions & 1 deletion src/solver/cuda_cfr.cu
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,8 @@ vector<vector<float>> CudaCFR::get_avg_strategy(int idx) {
}
}
return strategy;
}
}
vector<vector<float>> CudaCFR::get_ev(int idx) {
return {};
}
void CudaCFR::cfv_to_ev() {}

0 comments on commit f160411

Please sign in to comment.