cherry.envs¶ cherry.envs.utils¶ cherry.envs.utils.get_space_dimension(space, vectorized_dims = False) ¶ [Source] Description¶ Returns the number of elements of a space sample, when unrolled. Arguments¶ space - The space. vectorized_dims - Whether to return the full dimension for vectorized environments (True) or just the dimension for the underlying environment (False). cherry.envs.utils.is_discrete(space, vectorized = False) ¶ [Source] Description¶ Returns whether a space is discrete. Arguments¶ space - The space. vectorized - Whether to return the discreteness for the vectorized environments (True) or just the discreteness of the underlying environment (False). cherry.envs.utils.is_vectorized(env) ¶ [Source] Description¶ Heuristic that returns whether an environment is vectorized or not. Warning: functionality is experimental, mostly tested with gym.vector. cherry.envs.utils.num_envs(env) ¶ [Source] Description¶ Heuristic that returns the number of parallel workers in a vectorized environment. Warning: functionality is experimental, mostly tested with gym.vector.