浏览代码

Merge branch 'develop-action-buffer' of https://github.com/Unity-Technologies/ml-agents into develop-action-buffer

/develop/action-spec-gym
Andrew Cohen 4 年前
当前提交
088dd213
共有 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

正在加载...
取消
保存