]> git.sesse.net Git - stockfish/blobdiff - src/nnue/layers/clipped_relu.h
Clean up and simplify some nnue code.
[stockfish] / src / nnue / layers / clipped_relu.h
index ffd2e3b76a94523eec1beb01d6b67bec122a89d2..f94d30828d73ad7ce71b56be3c475071b92de257 100644 (file)
@@ -171,14 +171,6 @@ namespace Stockfish::Eval::NNUE::Layers {
             std::max(0, std::min(127, input[i] >> WeightScaleBits)));
       }
 
-      // Affine transform layers expect that there is at least
-      // ceil_to_multiple(OutputDimensions, 32) initialized values.
-      // We cannot do this in the affine transform because it requires
-      // preallocating space here.
-      for (IndexType i = OutputDimensions; i < PaddedOutputDimensions; ++i) {
-        output[i] = 0;
-      }
-
       return output;
     }
   };