Expand description
Policy and neural network implementations inference submodule available for WASM, training modules require training feature Policy and neural network wrappers.
After phase 5 of the Burn migration (#82), all policy networks live on
the Burn backend. The pure-Rust WASM inference path (inference and
universal_inference modules) is independent of Burn and is
available without the training feature.
Modules§
- atari_
cnn - Nature-DQN-scale CNN policies (actor-critic + Q-network) for the Atari (ALE) workload. Burn-backend Nature-DQN-scale CNN policy for the Atari (ALE) workload (Epic #306, Phase 3 — issue #327).
- continuous_
q - Continuous-action
Q(s, a)critic for SAC (twin critics + targets), with hard and Polyak (soft) target-sync helpers. Burn-backend continuous-action Q-critic for SAC (part of #136). - inference
- Inference-only model format for WASM deployment
- lstm
- LSTM (recurrent) actor-critic policy — Phase 1 of the recurrent-policy
epic (#262). Carries memory across timesteps via a Burn 0.21
Lstmtrunk, withforward_stepfor rollout collection andevaluate_sequencesfor the rank-3 training forward. Burn-backend LSTM (recurrent) actor-critic policy. - mlp
- MLP actor-critic policy used by the CartPole / Pong / SimpleBandit PPO trainers. Burn-backend MLP actor-critic policy.
- multi_
discrete_ mlp - Multi-discrete MLP policy used by Bucket Brigade and similar multi-discrete action spaces. Burn-backend multi-discrete actor-critic MLP for factored action spaces.
- q_
network - DQN Q-network with the same MLP backbone as
MlpPolicybut with a single Q-head. Burn-backend Q-Network for DQN training (phase 4 of the Burn migration, #65). - sac_
actor - SAC stochastic Gaussian actor (tanh-squashed) for continuous control. Burn-backend stochastic Gaussian actor for SAC (Soft Actor-Critic).
- seeded_
init - Seeded, host-side weight-initialization helpers that make policy
construction bit-exact under
PsroConfig::seed/NfspConfig::seed(issue #135). Burn 0.21’sInitializerhas no seed parameter, so we pre-compute the trunk + head weights from anStdRnginstead. Seeded, host-side weight-initialization helpers for bit-exact policy construction. - snake_
cnn - 3-conv + 2-fc CNN used by the Snake trainer. Burn-backend CNN policy for the Snake environment (phase 4 of the Burn migration, #65).
- universal_
inference - Universal inference system for diverse neural network architectures