]> git.sesse.net Git - stockfish/blobdiff - src/nnue/nnue_architecture.h
Cleanup comments and some code reorg.
[stockfish] / src / nnue / nnue_architecture.h
index be0138f14bd15fa93ca12bcf023abe3b46854e4a..e4c308cb267814c620d6015ba865ab2e7ab3c9b7 100644 (file)
@@ -113,8 +113,8 @@ struct Network {
         ac_1.propagate(buffer.fc_1_out, buffer.ac_1_out);
         fc_2.propagate(buffer.ac_1_out, buffer.fc_2_out);
 
-        // buffer.fc_0_out[FC_0_OUTPUTS] is such that 1.0 is equal to 127*(1<<WeightScaleBits) in quantized form
-        // but we want 1.0 to be equal to 600*OutputScale
+        // buffer.fc_0_out[FC_0_OUTPUTS] is such that 1.0 is equal to 127*(1<<WeightScaleBits) in
+        // quantized form, but we want 1.0 to be equal to 600*OutputScale
         std::int32_t fwdOut =
           int(buffer.fc_0_out[FC_0_OUTPUTS]) * (600 * OutputScale) / (127 * (1 << WeightScaleBits));
         std::int32_t outputValue = buffer.fc_2_out[0] + fwdOut;