GitHub
5 年前
当前提交
e5108d2c
共有 17 个文件被更改,包括 362 次插入 和 55 次删除
-
24com.unity.ml-agents/Runtime/Academy.cs
-
4com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
-
19com.unity.ml-agents/Runtime/Communicator/ICommunicator.cs
-
31com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs
-
74com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityRlInitializationInput.cs
-
79com.unity.ml-agents/Runtime/Grpc/CommunicatorObjects/UnityRlInitializationOutput.cs
-
18ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.py
-
9ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.pyi
-
13ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.py
-
10ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.pyi
-
38ml-agents-envs/mlagents_envs/environment.py
-
3ml-agents-envs/mlagents_envs/mock_communicator.py
-
8protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_rl_initialization_input.proto
-
10protobuf-definitions/proto/mlagents_envs/communicator_objects/unity_rl_initialization_output.proto
-
41utils/validate_versions.py
-
25com.unity.ml-agents/Tests/Editor/AcademyTests.cs
-
11com.unity.ml-agents/Tests/Editor/AcademyTests.cs.meta
|
|||
using NUnit.Framework; |
|||
using UnityEngine; |
|||
using System.Reflection; |
|||
using MLAgents; |
|||
|
|||
namespace MLAgents.Tests |
|||
{ |
|||
[TestFixture] |
|||
public class AcademyTests |
|||
{ |
|||
[Test] |
|||
public void TestPackageVersion() |
|||
{ |
|||
// Make sure that the version strings in the package and Academy don't get out of sync.
|
|||
// Unfortunately, the PackageInfo methods don't exist in earlier versions of the editor.
|
|||
#if UNITY_2019_3_OR_NEWER
|
|||
var packageInfo = UnityEditor.PackageManager.PackageInfo.FindForAssembly(typeof(Agent).Assembly); |
|||
Assert.AreEqual("com.unity.ml-agents", packageInfo.name); |
|||
Assert.AreEqual(Academy.k_PackageVersion, packageInfo.version); |
|||
#endif
|
|||
} |
|||
|
|||
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: f434773fe0f1b41c5b3f446fa0adece4 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue