mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
eval_nnueコマンド追加
This commit is contained in:
@@ -35,6 +35,8 @@ Value evaluate(const Position& pos);
|
||||
|
||||
void evaluate_with_no_return(const Position& pos);
|
||||
|
||||
Value compute_eval(const Position& pos);
|
||||
|
||||
#if defined(EVAL_NNUE) || defined(EVAL_LEARN)
|
||||
// 評価関数ファイルを読み込む。
|
||||
// これは、"is_ready"コマンドの応答時に1度だけ呼び出される。2度呼び出すことは想定していない。
|
||||
|
||||
@@ -400,6 +400,10 @@ void UCI::loop(int argc, char* argv[]) {
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(EVAL_NNUE)
|
||||
else if (token == "eval_nnue") sync_cout << "eval_nnue = " << Eval::compute_eval(pos) << sync_endl;
|
||||
#endif
|
||||
|
||||
#if defined(EVAL_NNUE) && defined(ENABLE_TEST_CMD)
|
||||
// テストコマンド
|
||||
else if (token == "test") test_cmd(pos, is);
|
||||
|
||||
Reference in New Issue
Block a user