Class IStepper
Class IStepper
- Defined in File StepperInterface.h
Inheritance Relationships
Derived Types
-
public UPipelinedStepper(Class UPipelinedStepper) -
public USimpleStepper(Class USimpleStepper)
class IStepperSource: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h
Interface for stepper implementations.
A stepper manages the observation-action loop by coordinating agents and policies. It collects observations from agents, passes them to a policy for inference, and applies the resulting actions back to the agents.
Subclassed by UPipelinedStepper, USimpleStepper
Public Functions
| Symbol | Details |
|---|---|
Init | Initialize the stepper with a single agent and policy. |
Init | Initialize the stepper with multiple agents and a policy. |
Init
inline virtual bool Init(const TScriptInterface<IAgent> &InAgent, const TScriptInterface<IPolicy> &InPolicy)Initialize the stepper with a single agent and policy.
Convenience method that wraps the agent in an array and calls the multi-agent Init.
Parameters
-
InAgent – [in] The agent to use for stepping
-
InPolicy – [in] The policy to use for inference
Returns:
true if initialization succeeded, false otherwise
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InAgent | const TScriptInterface< IAgent > & | The agent to use for stepping |
| 2 | — | InPolicy | const TScriptInterface< IPolicy > & | The policy to use for inference |
Attributes: inline, virtual
Source: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h
Init
virtual bool Init(const TArray<TScriptInterface<IAgent>> &InAgents, const TScriptInterface<IPolicy> &InPolicy) = 0Initialize the stepper with multiple agents and a policy.
Sets up the stepper to manage multiple agents using a single shared policy. The policy must support batched inference for multiple agents.
Parameters
-
InAgents – [in] Array of agents to manage
-
InPolicy – [in] The policy to use for inference
Returns:
true if initialization succeeded, false otherwise
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InAgent | const TScriptInterface< IAgent > & | The agent to use for stepping |
| 2 | — | InPolicy | const TScriptInterface< IPolicy > & | The policy to use for inference |
Attributes: inline, virtual
Source: Source/Schola/InferenceUtils/Public/Steppers/StepperInterface.h