浏览代码

Merge pull request #4716 from Unity-Technologies/develop-fix-validate-action

[Fix] Validate Action
/MLA-1734-demo-provider
GitHub 4 年前
当前提交
acfaa516
共有 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 "

正在加载...
取消
保存