浏览代码

format

/v2-staging-rebase
Chris Elion 4 年前
当前提交
5cd153e0
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 2
      com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
  2. 16
      com.unity.ml-agents/Runtime/InplaceArray.cs

2
com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs


observationProto.Shape.Add(shape[i]);
}
observationProto.ObservationType = (ObservationTypeProto) obsSpec.ObservationType;
observationProto.ObservationType = (ObservationTypeProto)obsSpec.ObservationType;
return observationProto;
}

16
com.unity.ml-agents/Runtime/InplaceArray.cs


{
m_Length = 1;
m_Elem0 = elem0;
m_Elem1 = new T {};
m_Elem2 = new T {};
m_Elem3 = new T {};
m_Elem1 = new T { };
m_Elem2 = new T { };
m_Elem3 = new T { };
}
/// <summary>

m_Length = 2;
m_Elem0 = elem0;
m_Elem1 = elem1;
m_Elem2 = new T {};
m_Elem3 = new T {};
m_Elem2 = new T { };
m_Elem3 = new T { };
}
/// <summary>

m_Elem0 = elem0;
m_Elem1 = elem1;
m_Elem2 = elem2;
m_Elem3 = new T {};
m_Elem3 = new T { };
}
/// <summary>

/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns>Whether the arrays are equivalent.</returns>
public static bool operator==(InplaceArray<T> lhs, InplaceArray<T> rhs)
public static bool operator ==(InplaceArray<T> lhs, InplaceArray<T> rhs)
{
if (lhs.Length != rhs.Length)
{

/// <param name="lhs"></param>
/// <param name="rhs"></param>
/// <returns>Whether the arrays are not equivalent</returns>
public static bool operator!=(InplaceArray<T> lhs, InplaceArray<T> rhs) => !(lhs == rhs);
public static bool operator !=(InplaceArray<T> lhs, InplaceArray<T> rhs) => !(lhs == rhs);
/// <summary>
/// Check that the arrays are equivalent.

正在加载...
取消
保存