mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 11:36:51 +08:00
Cleanup Evalfile handling
This cleans up the EvalFile handling after the merge of #4915, which has become a bit confusing on what it is actually doing. closes https://github.com/official-stockfish/Stockfish/pull/4971 No functional change
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string_view>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "../evaluate.h"
|
||||
#include "../misc.h"
|
||||
@@ -449,7 +450,7 @@ bool save_eval(const std::optional<std::string>& filename, NetSize netSize) {
|
||||
actualFilename = filename.value();
|
||||
else
|
||||
{
|
||||
if (currentEvalFileName[netSize]
|
||||
if (EvalFiles.at(netSize).selected_name
|
||||
!= (netSize == Small ? EvalFileDefaultNameSmall : EvalFileDefaultNameBig))
|
||||
{
|
||||
msg = "Failed to export a net. "
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Stockfish::Eval::NNUE {
|
||||
// Input features used in evaluation function
|
||||
using FeatureSet = Features::HalfKAv2_hm;
|
||||
|
||||
enum NetSize {
|
||||
enum NetSize : int {
|
||||
Big,
|
||||
Small
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user