A categorical actor that can run independently of its training environment.
Map finite Box observations to valid discrete controller actions.
Each component of a MultiDiscrete action has its own categorical
distribution. Observations are flattened in C order and converted to
float32. The actor stores no value function or optimiser state.
:param observation_space: Numeric Gymnasium Box, with a fixed shape.
:param action_space: Discrete or unmasked MultiDiscrete space.
:param config: Optional :class:`PolicyConfig` with hidden-layer widths.
:param seed: Nonnegative seed for initialization and stochastic actions.
:param device: Torch CPU or CUDA device.
Definition at line 222 of file policy.py.