浏览代码

don't allow obs type for variable length

/v2-staging-rebase
Chris Elion 4 年前
当前提交
27af0f1c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 6
      com.unity.ml-agents/Runtime/Sensors/ObservationSpec.cs

6
com.unity.ml-agents/Runtime/Sensors/ObservationSpec.cs


/// </summary>
/// <param name="obsSize"></param>
/// <param name="maxNumObs"></param>
/// <param name="obsType"></param>
public static ObservationSpec VariableLength(int obsSize, int maxNumObs, ObservationType obsType = ObservationType.Default)
public static ObservationSpec VariableLength(int obsSize, int maxNumObs)
{
var dimProps = new InplaceArray<DimensionProperty>(
DimensionProperty.VariableSize,

new InplaceArray<int>(obsSize, maxNumObs),
dimProps,
obsType
dimProps
);
}

正在加载...
取消
保存