mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Cast MultiCategorical num_outputs to int. (#4629)
This commit is contained in:
parent
967e8aad9d
commit
f600591468
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class ModelCatalog(object):
|
|||
elif isinstance(action_space, gym.spaces.multi_discrete.MultiDiscrete):
|
||||
if torch:
|
||||
raise NotImplementedError
|
||||
return MultiCategorical, sum(action_space.nvec)
|
||||
return MultiCategorical, int(sum(action_space.nvec))
|
||||
|
||||
raise NotImplementedError("Unsupported args: {} {}".format(
|
||||
action_space, dist_type))
|
||||
|
|
Loading…
Add table
Reference in a new issue