implemented nnue load
This commit is contained in:
1 parent
82c969a2ad
commit
67e9ebdda3
6 files changed
+55
-6
No files matched your search
+7
-3
@@ -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;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user