浏览代码

Merge branch 'master' into develop-fix-mask

/MLA-1734-demo-provider
vincentpierre 4 年前
当前提交
29090047
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents-envs/mlagents_envs/base_env.py

2
ml-agents-envs/mlagents_envs/base_env.py


_size = self.continuous_size
else:
_size = self.discrete_size
_expected_shape = (n_agents, _size) if n_agents else (_size,)
_expected_shape = (n_agents, _size) if n_agents is not None else (_size,)
if actions.shape != _expected_shape:
raise UnityActionException(
f"The behavior {name} needs an input of dimension "

正在加载...
取消
保存