Replaced the utility function to create a directory to std::filesystem.

This commit is contained in:
nodchip
2020-09-07 18:56:41 +09:00
parent e004e47e5a
commit 4cc98d80f8
4 changed files with 4 additions and 70 deletions

View File

@@ -4,6 +4,7 @@
#include <random>
#include <fstream>
#include <filesystem>
#include "../learn/learn.h"
#include "../learn/learning_tools.h"
@@ -207,7 +208,7 @@ void save_eval(std::string dir_name) {
// mkdir() will fail if this folder already exists, but
// Apart from that. If not, I just want you to make it.
// Also, assume that the folders up to EvalSaveDir have been dug.
Dependency::mkdir(eval_dir);
std::filesystem::create_directories(eval_dir);
if (Options["SkipLoadingEval"] && NNUE::trainer) {
NNUE::SendMessages({{"clear_unobserved_feature_weights"}});