浏览代码

Update comment on time horizon in agent processor (#3842)

/develop/dockerfile
GitHub 5 年前
当前提交
048d66fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/agent_processor.py

2
ml-agents/mlagents/trainers/agent_processor.py


if not terminated:
self.episode_steps[global_id] += 1
# if the trajectory is too long, we truncate it
# Add a trajectory segment to the buffer if terminal or the length has reached the time horizon
if (
len(self.experience_buffers[global_id]) >= self.max_trajectory_length
or terminated

正在加载...
取消
保存