]> git.sesse.net Git - stockfish/commit
Clean up and simplify some nnue code.
authormstembera <MissingEmail@email>
Thu, 24 Feb 2022 02:19:36 +0000 (18:19 -0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 25 Feb 2022 07:37:57 +0000 (08:37 +0100)
commit5f781d366e0f4369ec12e36c9978ad63ffa32235
tree91ba92479e61580c35fe8904c1870d3f7ba7f578
parent27139dedac14af400f5b18e2ab50aca3f8cf0e33
Clean up and simplify some nnue code.

Remove some unnecessary code and it's execution during inference. Also the change on line 49 in nnue_architecture.h results in a more efficient SIMD code path through ClippedReLU::propagate().

passed STC:
https://tests.stockfishchess.org/tests/view/6217d3bfda649bba32ef25d5
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 12056 W: 3281 L: 3092 D: 5683
Ptnml(0-2): 55, 1213, 3312, 1384, 64

passed STC SMP:
https://tests.stockfishchess.org/tests/view/6217f344da649bba32ef295e
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 27376 W: 7295 L: 7137 D: 12944
Ptnml(0-2): 52, 2859, 7715, 3003, 59

closes https://github.com/official-stockfish/Stockfish/pull/3944

No functional change

bench: 6820724
src/nnue/evaluate_nnue.cpp
src/nnue/layers/affine_transform.h
src/nnue/layers/clipped_relu.h
src/nnue/nnue_architecture.h
src/nnue/nnue_common.h
src/nnue/nnue_feature_transformer.h