]> git.sesse.net Git - stockfish/commit
Simplify ClippedReLU
authorcj5716 <125858804+cj5716@users.noreply.github.com>
Fri, 17 May 2024 10:05:12 +0000 (18:05 +0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 21 May 2024 05:58:16 +0000 (07:58 +0200)
commit27eb49a2211c90650ef64d5102e6e36ca5e69af0
tree31f53bd04e5deaeed04a1005b70a6a8f01c80049
parent2d3258162387bf38551962bf2c9dd1d47e72b4dd
Simplify ClippedReLU

Removes some max calls

Some speedup stats, courtesy of @AndyGrant (albeit measured in an alternate implementation)
Dev  749240 nps
Base 748495 nps
Gain 0.100%
289936 games

STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 203040 W: 52213 L: 52179 D: 98648
Ptnml(0-2): 480, 20722, 59139, 20642, 537
https://tests.stockfishchess.org/tests/view/664805fe6dcff0d1d6b05f2c

closes #5261

No functional change
src/nnue/layers/clipped_relu.h
src/nnue/nnue_misc.cpp
src/tune.cpp
src/uci.cpp