observation_spaces_to_in_shapes

class maze.perception.perception_utils.observation_spaces_to_in_shapes(observation_spaces: Dict[int | str, gymnasium.spaces.Dict])

Convert an observation space to the input shapes for the neural networks

Parameters:

observation_spaces – the observation spaces of a structured Env

Returns:

the same structure but all the gym spaces are converted to tuples