avoid DeprecationWarning

This commit is contained in:
NM512
2023-06-18 17:18:24 +09:00
parent e3329b35e5
commit b408067d9a
4 changed files with 8 additions and 7 deletions

View File

@@ -36,9 +36,9 @@ class MemoryMaze:
return {
**spaces,
"reward": gym.spaces.Box(-np.inf, np.inf, (), dtype=np.float32),
"is_first": gym.spaces.Box(0, 1, (), dtype=np.bool),
"is_last": gym.spaces.Box(0, 1, (), dtype=np.bool),
"is_terminal": gym.spaces.Box(0, 1, (), dtype=np.bool),
"is_first": gym.spaces.Box(0, 1, (), dtype=bool),
"is_last": gym.spaces.Box(0, 1, (), dtype=bool),
"is_terminal": gym.spaces.Box(0, 1, (), dtype=bool),
}
@property