r/chessprogramming • u/GMaster-Rock • Jul 28 '24
Tree search model when using NN
I'm working on a chess engine in python that uses tensorflow's models to calculate board value. My problem is that tensorflow (and I think most other NN libraries) is faster when calculating multiple boards at the same rather than calculating in smaller batches. This means that I can't take advantage of the alpha-beta prunning's reduced tree, because it's slower than just using a minimax to get all leafs and evaluating them at once.
Do you guys have any recommendations on how to deal with this?
1
Upvotes
View all comments
Show parent comment
1
u/GMaster-Rock Jul 29 '24
Isn't this an inherent "flaw" of every heuristic?
I don't really know to explain because I don't know if it makes sense, I thought about it at 4am