浏览代码

adding an exception when obs are not the correct size

/bullet-hell-barracuda-test-1.3.1
vincentpierre 4 年前
当前提交
73553ac0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.ml-agents/Runtime/Sensors/BufferSensor.cs

2
com.unity.ml-agents/Runtime/Sensors/BufferSensor.cs


throw new UnityAgentsException(
"The BufferSensor was expecting an observation of size " +
$"{m_ObsSize} but received {obs.Length} observations instead."
)
);
}
if (m_CurrentNumObservables >= m_MaxNumObs)
{

正在加载...
取消
保存