浏览代码

Update ml-agents-envs/mlagents_envs/environment.py

Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com>
/develop/action-spec-gym
GitHub 4 年前
当前提交
caac7324
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ml-agents-envs/mlagents_envs/environment.py

4
ml-agents-envs/mlagents_envs/environment.py


)
) from ie
if action_spec.continuous_size > 0:
self._env_actions[behavior_name].continuous[index] = action.continuous[0]
self._env_actions[behavior_name].continuous[index] = action.continuous[0, :]
self._env_actions[behavior_name].discrete[index] = action.discrete[0]
self._env_actions[behavior_name].discrete[index] = action.discrete[0, :]
def get_steps(
self, behavior_name: BehaviorName

正在加载...
取消
保存