浏览代码

Creating an ObservationSpec in GetObservationSpec

/fix-grid-obs-shape-init
vincentpierre 3 年前
当前提交
436cd6ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.ml-agents.extensions/Runtime/Sensors/GridSensor.cs

2
com.unity.ml-agents.extensions/Runtime/Sensors/GridSensor.cs


/// <returns>int[] of the observation shape</returns>
public ObservationSpec GetObservationSpec()
{
// Lazy update
m_ObservationSpec = ObservationSpec.Visual(GridNumSideX, GridNumSideZ, ObservationPerCell);
var shape = m_ObservationSpec.Shape;
if (shape[0] != GridNumSideX || shape[1] != GridNumSideZ || shape[2] != ObservationPerCell)
{

正在加载...
取消
保存