mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Add network export to CI
verify the network written by export_net matches the original closes https://github.com/official-stockfish/Stockfish/pull/4613 No functional change
This commit is contained in:
parent
932f5a2d65
commit
b7ee7290b5
1 changed files with 7 additions and 1 deletions
|
@ -70,7 +70,8 @@ for args in "eval" \
|
||||||
"go depth 10" \
|
"go depth 10" \
|
||||||
"go movetime 1000" \
|
"go movetime 1000" \
|
||||||
"go wtime 8000 btime 8000 winc 500 binc 500" \
|
"go wtime 8000 btime 8000 winc 500 binc 500" \
|
||||||
"bench 128 $threads 8 default depth"
|
"bench 128 $threads 8 default depth" \
|
||||||
|
"export_net verify.nnue"
|
||||||
do
|
do
|
||||||
|
|
||||||
echo "$prefix $exeprefix ./stockfish $args $postfix"
|
echo "$prefix $exeprefix ./stockfish $args $postfix"
|
||||||
|
@ -78,6 +79,11 @@ do
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# verify the generated net equals the base net
|
||||||
|
network=`./stockfish uci | grep 'option name EvalFile type string default' | awk '{print $NF}'`
|
||||||
|
echo "Comparing $network to the written verify.nnue"
|
||||||
|
diff $network verify.nnue
|
||||||
|
|
||||||
# more general testing, following an uci protocol exchange
|
# more general testing, following an uci protocol exchange
|
||||||
cat << EOF > game.exp
|
cat << EOF > game.exp
|
||||||
set timeout 240
|
set timeout 240
|
||||||
|
|
Loading…
Add table
Reference in a new issue