浏览代码

use 0 as default manager id

/develop/superpush/int
Ruo-Ping Dong 4 年前
当前提交
8748f561
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.ml-agents/Runtime/Agent.cs

6
com.unity.ml-agents/Runtime/Agent.cs


new int[m_ActuatorManager.NumDiscreteActions]
);
m_Info.teamManagerId = m_TeamManager == null ? -1 : m_TeamManager.GetId();
m_Info.teamManagerId = m_TeamManager == null ? 0 : m_TeamManager.GetId();
// The first time the Academy resets, all Agents in the scene will be
// forced to reset through the <see cref="AgentForceReset"/> event.

m_Info.teamReward = m_TeamReward;
m_Info.done = true;
m_Info.maxStepReached = doneReason == DoneReason.MaxStepReached;
m_Info.teamManagerId = m_TeamManager == null ? -1 : m_TeamManager.GetId();
m_Info.teamManagerId = m_TeamManager == null ? 0 : m_TeamManager.GetId();
if (collectObservationsSensor != null)
{
// Make sure the latest observations are being passed to training.

m_Info.done = false;
m_Info.maxStepReached = false;
m_Info.episodeId = m_EpisodeId;
m_Info.teamManagerId = m_TeamManager == null ? -1 : m_TeamManager.GetId();
m_Info.teamManagerId = m_TeamManager == null ? 0 : m_TeamManager.GetId();
using (TimerStack.Instance.Scoped("RequestDecision"))
{

正在加载...
取消
保存