1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Fix export of the feature transformer.

PSQT export was missing.

fixes #3507

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

No functional change
This commit is contained in:
Tomasz Sobczyk 2021-05-29 11:40:40 +02:00 committed by Joost VandeVondele
parent 4c02998325
commit 5448cad29e

View file

@ -165,6 +165,8 @@ namespace Stockfish::Eval::NNUE {
write_little_endian<BiasType>(stream, biases[i]);
for (std::size_t i = 0; i < HalfDimensions * InputDimensions; ++i)
write_little_endian<WeightType>(stream, weights[i]);
for (std::size_t i = 0; i < PSQTBuckets * InputDimensions; ++i)
write_little_endian<PSQTWeightType>(stream, psqtWeights[i]);
return !stream.fail();
}