[−][src]Module cppconnect6::cppbind
Rust bindings for C++ interface and impl of AlphaZero policy evaluator
It provides extern "C"
based bindings for some utilities to implement policy and AlphaZero
evaluator.
Modules
ffi_test | Test implementation for Rust-C++ FFI. |
Structs
Allocator | Allocator for FFI, (ex. C++ new operator) |
CppEval | AlphaZero value, policy approximator with c ffi callback |
CppPolicy | C++ FFI policy bindings. |
RawPath | Path object for c ffi |
RawPlayResult | PlayResult object for c ffi |
RawVec | Vector object for c ffi |
Functions
board_to_float | Convert Player:Board to CFloat:Board |
Type Definitions
AllocatorType | Allocator Type for FFI, (ex. C++ new operator) |
CFloat | std::os::raw::c_float |
CInt | std::os::raw::c_int |
Callback | void(int player, float* values, float* board, int length) |
PolicyCallback | void(float* boards, int* position_result) |