We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6de6e0e + 9102ff9 commit 5fa5ee3Copy full SHA for 5fa5ee3
slm_lab/env/base.py
@@ -142,6 +142,8 @@ def _get_spaces(self, u_env):
142
def _get_observable_dim(self, observation_space):
143
'''Get the observable dim for an agent in env'''
144
state_dim = observation_space.shape
145
+ if isinstance(observation_space, spaces.MultiDiscrete):
146
+ state_dim = observation_space.nvec.tolist()
147
if len(state_dim) == 1:
148
state_dim = state_dim[0]
149
return {'state': state_dim}
0 commit comments