PPO Actor-Critic Models #
Reusable actor/critic MLP constructors for PPO examples.
These helpers cover the neural-network shape. Environment collection, trust-boundary checks, advantage computation, and optimizer loops stay in the examples/runtime modules.
def
TorchLean.nn.models.PPO.actor
(config : Config)
(batchShape : Shape := [])
:
Builder (Sequential (config.inputShape batchShape) (config.actorOutputShape batchShape))
Actor MLP mapping observations to action logits.
Instances For
def
TorchLean.nn.models.PPO.critic
(config : Config)
(batchShape : Shape := [])
:
Builder (Sequential (config.inputShape batchShape) (config.criticOutputShape batchShape))
Critic MLP mapping observations to a scalar value estimate.