Skip to content

Commit f869448

Browse files
authored
fix alpha zero fallback result size (#32)
1 parent f852b2d commit f869448

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/model/policy.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void Policy::get_policy(const std::vector<double> &q_values, const std::vector<d
5050
}
5151
catch (std::runtime_error &e) {
5252
result.clear();
53+
result.insert(result.begin(), q_values.size(), 0);
5354
alpha_zero(q_values, pi_values, counts, result);
5455
}
5556

0 commit comments

Comments
 (0)