mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-29 17:45:07 +00:00
Update vector space utility functions for all spaces (#223)
This commit is contained in:
@@ -243,7 +243,7 @@ def _flatten_sequence(
|
||||
space: Sequence, x: tuple[Any, ...] | Any
|
||||
) -> tuple[Any, ...] | Any:
|
||||
if space.stack:
|
||||
samples_iters = gym.vector.utils.iterate(space.batched_feature_space, x)
|
||||
samples_iters = gym.vector.utils.iterate(space.stacked_feature_space, x)
|
||||
flattened_samples = [
|
||||
flatten(space.feature_space, sample) for sample in samples_iters
|
||||
]
|
||||
|
Reference in New Issue
Block a user