浏览代码

Fix for #1093 (#1111)

Check in the batcher that the memories are not null before adding them to the agentInfoProto
/develop-generalizationTraining-TrainerController
Arthur Juliani 6 年前
当前提交
1c28869a
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      unity-environment/Assets/ML-Agents/Scripts/Batcher.cs

6
unity-environment/Assets/ML-Agents/Scripts/Batcher.cs


{
StackedVectorObservation = { info.stackedVectorObservation },
StoredVectorActions = { info.storedVectorActions },
Memories = { info.memories },
StoredTextActions = info.storedTextActions,
TextObservation = info.textObservation,
Reward = info.reward,

};
if (info.memories != null)
{
agentInfoProto.Memories.Add(info.memories);
}
foreach (Texture2D obs in info.visualObservations)
{
agentInfoProto.VisualObservations.Add(

正在加载...
取消
保存