浏览代码

fix buffer

/ai-hw-2021
Ruo-Ping Dong 4 年前
当前提交
26bbab35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.ml-agents/Runtime/ReplayBuffer.cs

2
com.unity.ml-agents/Runtime/ReplayBuffer.cs


{
if (m_Buffer.Count < m_MaxSize)
{
m_Buffer.Append(new Transition() {state=state, action=info.storedActions, reward=info.reward, nextState=nextState});
m_Buffer.Add(new Transition() {state=state, action=info.storedActions, reward=info.reward, nextState=nextState});
}
else
{

正在加载...
取消
保存