[][src]Function ggpf::deep::self_play::alphazero_game_generator

pub async fn alphazero_game_generator<GB, A, B>(
    config: AlphaZeroConfig<A, B>,
    config_selfplay: SelfPlay,
    game_builder: GB,
    output_chan: Sender<GameHistoryEntry<GB::G>>
) where
    GB::G: Features + Clone + Send + Sync + 'static,
    <GB::G as Base>::Move: Send + Sync,
    <GB::G as Game>::Player: Send + Sync,
    GB: GameBuilder + Clone + Sync + Send + 'static,
    A: Dimension + 'static,
    B: Dimension + 'static, 

AlphaZero self-play games generator

Spawn several tasks (number according to settings) that performs self-play games using the AlphaZero policy, sending them in the output_chan channel.

Params

Panics

This function will panic if the evaluator shapes doesn't fit, or if the CUDA executor goes out of memory.