浏览代码

deep copy transition list

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

3
com.unity.ml-agents/Runtime/Training/ReplayBuffer.cs


List<Transition> m_Buffer;
int m_CurrentIndex;
int m_MaxSize;
ITensorAllocator m_Allocator;
public ReplayBuffer(int maxSize, ITensorAllocator allocator)
public ReplayBuffer(int maxSize)
{
m_Buffer = new List<Transition>();
m_Buffer.Capacity = maxSize;

正在加载...
取消
保存