mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Added halfkp-cr-ep_256x2-32-32 architecture.
This commit is contained in:
38
src/eval/nnue/architectures/halfkp-cr-ep_256x2-32-32.h
Normal file
38
src/eval/nnue/architectures/halfkp-cr-ep_256x2-32-32.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
// NNUE<55>]<5D><><EFBFBD><EFBFBD><D690>ŗp<C597><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͓<EFBFBD><CD93><EFBFBD><EFBFBD>ʂƃl<C683>b<EFBFBD>g<EFBFBD><67><EFBFBD>[<5B>N<EFBFBD>\<5C><><EFBFBD>̒<EFBFBD><CC92>`
|
||||||
|
|
||||||
|
#include "../features/feature_set.h"
|
||||||
|
#include "../features/half_kp.h"
|
||||||
|
#include "../features/castling_right.h"
|
||||||
|
#include "../features/enpassant.h"
|
||||||
|
|
||||||
|
#include "../layers/input_slice.h"
|
||||||
|
#include "../layers/affine_transform.h"
|
||||||
|
#include "../layers/clipped_relu.h"
|
||||||
|
|
||||||
|
namespace Eval {
|
||||||
|
|
||||||
|
namespace NNUE {
|
||||||
|
|
||||||
|
// <20>]<5D><><EFBFBD><EFBFBD><D690>ŗp<C597><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͓<EFBFBD><CD93><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
using RawFeatures = Features::FeatureSet<
|
||||||
|
Features::HalfKP<Features::Side::kFriend>, Features::CastlingRight,
|
||||||
|
Features::EnPassant>;
|
||||||
|
|
||||||
|
// <20>ϊ<EFBFBD><CF8A><EFBFBD><EFBFBD>̓<EFBFBD><CC93>͓<EFBFBD><CD93><EFBFBD><EFBFBD>ʂ̎<CA82><CC8E><EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
constexpr IndexType kTransformedFeatureDimensions = 256;
|
||||||
|
|
||||||
|
namespace Layers {
|
||||||
|
|
||||||
|
// <20>l<EFBFBD>b<EFBFBD>g<EFBFBD><67><EFBFBD>[<5B>N<EFBFBD>\<5C><><EFBFBD>̒<EFBFBD><CC92>`
|
||||||
|
using InputLayer = InputSlice<kTransformedFeatureDimensions * 2>;
|
||||||
|
using HiddenLayer1 = ClippedReLU<AffineTransform<InputLayer, 32>>;
|
||||||
|
using HiddenLayer2 = ClippedReLU<AffineTransform<HiddenLayer1, 32>>;
|
||||||
|
using OutputLayer = AffineTransform<HiddenLayer2, 1>;
|
||||||
|
|
||||||
|
} // namespace Layers
|
||||||
|
|
||||||
|
using Network = Layers::OutputLayer;
|
||||||
|
|
||||||
|
} // namespace NNUE
|
||||||
|
|
||||||
|
} // namespace Eval
|
||||||
@@ -8,8 +8,9 @@
|
|||||||
// 入力特徴量とネットワーク構造が定義されたヘッダをincludeする
|
// 入力特徴量とネットワーク構造が定義されたヘッダをincludeする
|
||||||
//#include "architectures/k-p_256x2-32-32.h"
|
//#include "architectures/k-p_256x2-32-32.h"
|
||||||
//#include "architectures/k-p-cr_256x2-32-32.h"
|
//#include "architectures/k-p-cr_256x2-32-32.h"
|
||||||
#include "architectures/k-p-cr-ep_256x2-32-32.h"
|
//#include "architectures/k-p-cr-ep_256x2-32-32.h"
|
||||||
//#include "architectures/halfkp_256x2-32-32.h"
|
//#include "architectures/halfkp_256x2-32-32.h"
|
||||||
|
#include "architectures/halfkp-cr-ep_256x2-32-32.h"
|
||||||
|
|
||||||
namespace Eval {
|
namespace Eval {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user