浏览代码

Update API to version 5 (#1179)

/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
a54714f8
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 2
      UnitySDK/Assets/ML-Agents/Scripts/Academy.cs
  2. 2
      ml-agents/mlagents/envs/environment.py
  3. 2
      ml-agents/tests/mock_communicator.py
  4. 2
      ml-agents/tests/trainers/test_trainer_controller.py

2
UnitySDK/Assets/ML-Agents/Scripts/Academy.cs


"docs/Learning-Environment-Design-Academy.md")]
public abstract class Academy : MonoBehaviour
{
private const string kApiVersion = "API-4";
private const string kApiVersion = "API-5";
// Fields provided in the Inspector

2
ml-agents/mlagents/envs/environment.py


atexit.register(self._close)
self.port = base_port + worker_id
self._buffer_size = 12000
self._version_ = "API-4"
self._version_ = "API-5"
self._loaded = False # If true, this means the environment was successfully loaded
self.proc1 = None # The process that is started. If None, no process was started
self.communicator = self.get_communicator(worker_id, base_port)

2
ml-agents/tests/mock_communicator.py


)
rl_init = UnityRLInitializationOutput(
name="RealFakeAcademy",
version="API-4",
version="API-5",
log_path="",
brain_parameters=[bp]
)

2
ml-agents/tests/trainers/test_trainer_controller.py


"brainNames": ["RealFakeBrain"],
"externalBrainNames": ["RealFakeBrain"],
"logPath":"RealFakePath",
"apiNumber":"API-3",
"apiNumber":"API-5",
"brainParameters": [{
"vectorObservationSize": 3,
"numStackedVectorObservations" : 2,

正在加载...
取消
保存