We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6de6e0e commit 0c5c47aCopy full SHA for 0c5c47a
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