From 3171d024135f3a0fdfb234acb23710c3977823c6 Mon Sep 17 00:00:00 2001 From: Karl Kfoury <76066593+KarlKfoury@users.noreply.github.com> Date: Thu, 29 Aug 2024 04:32:54 +0300 Subject: [PATCH] fixing issue #2003 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) --- src/mcts/stoppers/stoppers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcts/stoppers/stoppers.h b/src/mcts/stoppers/stoppers.h index f813c4daf1..08e7c0990d 100644 --- a/src/mcts/stoppers/stoppers.h +++ b/src/mcts/stoppers/stoppers.h @@ -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;