Skip to content

Commit 9102ff9

Browse files
authored
Merge pull request #508 from dvstter/steganography
fix #506
2 parents 1c68549 + 0c5c47a commit 9102ff9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<br><br>
1010
</p>
1111

12+
>NOTE: the `book` branch has been updated for issue fixes. For the original code in the book _Foundations of Deep Reinforcement Learning_, check out to git tag `v4.1.1`
1213
1314
|||||
1415
|:---:|:---:|:---:|:---:|

slm_lab/env/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def _get_spaces(self, u_env):
142142
def _get_observable_dim(self, observation_space):
143143
'''Get the observable dim for an agent in env'''
144144
state_dim = observation_space.shape
145+
if isinstance(observation_space, spaces.MultiDiscrete):
146+
state_dim = observation_space.nvec.tolist()
145147
if len(state_dim) == 1:
146148
state_dim = state_dim[0]
147149
return {'state': state_dim}

0 commit comments

Comments
 (0)