From 291a429cdd54f5298b8dc3d19cd08c3a64de4d10 Mon Sep 17 00:00:00 2001 From: Disservin Date: Mon, 17 Feb 2025 21:24:57 +0100 Subject: [PATCH] Remove duplicated info string printing Currently "info string" is being printed twice for the network arch ``` info string info string NNUE evaluation using nn-1c0000000000.nnue (133MiB, (22528, 3072, 15, 32, 1)) info string info string NNUE evaluation using nn-37f18f62d772.nnue (6MiB, (22528, 128, 15, 32, 1)) ``` closes https://github.com/official-stockfish/Stockfish/pull/5889 No functional change --- src/nnue/network.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nnue/network.cpp b/src/nnue/network.cpp index 5ac8b8d98..fe312fcb8 100644 --- a/src/nnue/network.cpp +++ b/src/nnue/network.cpp @@ -268,9 +268,8 @@ void Network::verify(std::string if (f) { size_t size = sizeof(*featureTransformer) + sizeof(Arch) * LayerStacks; - f("info string NNUE evaluation using " + evalfilePath + " (" - + std::to_string(size / (1024 * 1024)) + "MiB, (" - + std::to_string(featureTransformer->InputDimensions) + ", " + f("NNUE evaluation using " + evalfilePath + " (" + std::to_string(size / (1024 * 1024)) + + "MiB, (" + std::to_string(featureTransformer->InputDimensions) + ", " + std::to_string(network[0].TransformedFeatureDimensions) + ", " + std::to_string(network[0].FC_0_OUTPUTS) + ", " + std::to_string(network[0].FC_1_OUTPUTS) + ", 1))");