Skip to content

Instantly share code, notes, and snippets.

from cshogi import *
from cshogi.dlshogi import make_input_features, FEATURES1_NUM, FEATURES2_NUM
import numpy as np
import onnxruntime
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('model', type=str, default='model', help='model file name')
@TadaoYamaoka
TadaoYamaoka / kisen_to_csa.cpp
Last active January 5, 2024 07:09
kisen_to_csa.cpp
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <string>
#define EM 0
#define FU 7
#define KY 6
@TadaoYamaoka
TadaoYamaoka / dlshogi-ramdom_move.zip
Last active December 5, 2021 13:27
dlshogi-ramdom_move
@TadaoYamaoka
TadaoYamaoka / dlshogi_matepv.zip
Last active October 31, 2021 08:52
dlshogi_matepv.zip
@TadaoYamaoka
TadaoYamaoka / dlshogi_eval_coef.zip
Created October 19, 2021 14:00
dlshogi_eval_coef.zip
@TadaoYamaoka
TadaoYamaoka / settai_dlshogi.zip
Last active October 11, 2021 13:53
接待dlshogi
This file has been truncated, but you can view the full file.
#include <iostream>
#include <cfloat>
#include <chrono>
#include <immintrin.h>
inline unsigned int __builtin_ctz(unsigned int x) { unsigned long r; _BitScanForward(&r, x); return r; }
const __m256i m256i_zero{};
const __m256i m256i_one = _mm256_set1_epi32(1);
const __m256 m256_one = _mm256_set1_ps(1);
@TadaoYamaoka
TadaoYamaoka / Program.cs
Last active August 7, 2019 13:11
AutoMapperのサンプルプログラム
using System;
using System.Collections.Generic;
using AutoMapper;
namespace amtest
{
class Order {
public string aaa;
public int[] bbb;
public List<int> ccc;