浏览代码

[Fix] If no agents are connected to an external brain, the external communicator should not try to update the agents (#399)

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
19e60852
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      unity-environment/Assets/ML-Agents/Scripts/ExternalCommunicator.cs

4
unity-environment/Assets/ML-Agents/Scripts/ExternalCommunicator.cs


{
var brainName = brain.gameObject.name;
if (current_agents[brainName].Count() == 0)
{
continue;
}
var memorySize = rMessage.memory[brainName].Count() / current_agents[brainName].Count();
for (int i = 0; i < current_agents[brainName].Count(); i++)

正在加载...
取消
保存