Skip to content

Commit

Permalink
fixing issue LeelaChessZero#2003
Browse files Browse the repository at this point in the history
node_limits value now follows the value passed to the stopper in common.cc (= 4000000000 if params.nodes was not initialized, = params.nodes if params.nodes was initialized to an int, 0 included)
  • Loading branch information
KarlKfoury authored Aug 29, 2024
1 parent b4bf17f commit 3171d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcts/stoppers/stoppers.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ChainedSearchStopper : public SearchStopper {
class VisitsStopper : public SearchStopper {
public:
VisitsStopper(int64_t limit, bool populate_remaining_playouts)
: nodes_limit_(limit ? limit : 4000000000ll),
: nodes_limit_(limit),
populate_remaining_playouts_(populate_remaining_playouts) {}
int64_t GetVisitsLimit() const { return nodes_limit_; }
bool ShouldStop(const IterationStats&, StoppersHints*) override;
Expand Down

0 comments on commit 3171d02

Please sign in to comment.