浏览代码

-

/exp-vince
vincentpierre 4 年前
当前提交
e66e7ca1
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      ml-agents/mlagents/trainers/simple_env_manager.py

5
ml-agents/mlagents/trainers/simple_env_manager.py


self.previous_all_action_info = all_action_info
for brain_name, action_info in all_action_info.items():
self.env.set_actions(brain_name, np.array(action_info.action))
try:
self.env.set_actions(brain_name, np.array(action_info.action))
except:
pass
self.env.step()
all_step_result = self._generate_all_results()

正在加载...
取消
保存