/*1Stockfish, a UCI chess playing engine derived from Glaurung 2.12Copyright (C) 2004-2025 The Stockfish developers (see AUTHORS file)34Stockfish is free software: you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation, either version 3 of the License, or7(at your option) any later version.89Stockfish is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef NNUE_MISC_H_INCLUDED19#define NNUE_MISC_H_INCLUDED2021#include <cstddef>22#include <string>2324#include "../types.h"25#include "nnue_architecture.h"2627namespace Stockfish {2829class Position;3031namespace Eval::NNUE {3233struct EvalFile {34// Default net name, will use one of the EvalFileDefaultName* macros defined35// in evaluate.h36std::string defaultName;37// Selected net name, either via uci option or default38std::string current;39// Net description extracted from the net file40std::string netDescription;41};424344struct NnueEvalTrace {45static_assert(LayerStacks == PSQTBuckets);4647Value psqt[LayerStacks];48Value positional[LayerStacks];49std::size_t correctBucket;50};5152struct Networks;53struct AccumulatorCaches;5455std::string trace(Position& pos, const Networks& networks, AccumulatorCaches& caches);5657} // namespace Stockfish::Eval::NNUE58} // namespace Stockfish5960#endif // #ifndef NNUE_MISC_H_INCLUDED616263