diff --git a/rllib/models/catalog.py b/rllib/models/catalog.py index 4fd864fde..881f5299d 100644 --- a/rllib/models/catalog.py +++ b/rllib/models/catalog.py @@ -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(