implemented nnue load

This commit is contained in:
rektdie committed 2025-04-08 10:51:35 +02:00
1 parent 82c969a2ad
commit 67e9ebdda3
6 files changed
+55 -6

No files matched your search

+7 -3
View File
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <string>
#include <array>
namespace NNUE {
@@ -12,12 +13,15 @@ constexpr int QA = 255;
constexpr int QB = 64;
struct Network {
int16_t accumulator_weights[INPUT_SIZE][HL_SIZE];
int16_t accumulator_biases[HL_SIZE];
int16_t output_weights[2 * HL_SIZE];
std::array<int16_t, HL_SIZE * INPUT_SIZE> accumulator_weights;
std::array<int16_t, HL_SIZE> accumulator_biases;
std::array<int16_t, 2 * HL_SIZE> output_weights;
int16_t output_bias;
void Load(const std::string& path);
void Print();
};
inline Network net;
}