浏览代码

Use `curr_brain_info`

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
99103b29
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      python/unitytrainers/ppo/trainer.py

2
python/unitytrainers/ppo/trainer.py


if self.is_continuous:
run_list.append(self.model.epsilon)
elif self.use_recurrent:
feed_dict[self.model.prev_action] = np.reshape(info.previous_actions, [-1])
feed_dict[self.model.prev_action] = np.reshape(curr_brain_info.previous_actions, [-1])
if self.use_observations:
for i, _ in enumerate(curr_brain_info.observations):
feed_dict[self.model.observation_in[i]] = curr_brain_info.observations[i]

正在加载...
取消
保存