浏览代码

Fixing inference speed and null pointer exception (#3046)

/develop
GitHub 5 年前
当前提交
3fd19180
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs
  2. 2
      UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridArea.cs

2
UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs


renderCamera.Render();
}
if (!m_Academy.IsCommunicatorOn)
if (m_Academy.IsCommunicatorOn)
{
RequestDecision();
}

2
UnitySDK/Assets/ML-Agents/Examples/GridWorld/Scripts/GridArea.cs


Vector3 m_InitialPosition;
public void Awake()
public void Start()
{
m_ResetParameters = FindObjectOfType<Academy>().FloatProperties;

正在加载...
取消
保存