mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
[rllib] Fix error in shape calculation. (#7301)
This commit is contained in:
@@ -229,6 +229,7 @@ class ModelCatalog:
|
||||
else:
|
||||
all_discrete = False
|
||||
size += np.product(action_space.spaces[i].shape)
|
||||
size = int(size)
|
||||
return (tf.int64 if all_discrete else tf.float32, (None, size))
|
||||
elif isinstance(action_space, gym.spaces.Dict):
|
||||
raise NotImplementedError(
|
||||
|
||||
Reference in New Issue
Block a user