浏览代码

Bug fix for the pytests of the worker-id

/develop-generalizationTraining-TrainerController
vincentpierre 6 年前
当前提交
4225c4e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/envs/rpc_communicator.py

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


add_UnityToExternalServicer_to_server(self.unity_to_external, self.server)
self.server.add_insecure_port('localhost:' + str(self.port))
self.server.start()
self.is_open = True
except:
raise UnityWorkerInUseException(self.worker_id)

"\t The Academy and the External Brain(s) are attached to objects in the Scene\n"
"\t The environment and the Python interface have compatible versions.")
aca_param = self.unity_to_external.parent_conn.recv().unity_output
self.is_open = True
message = UnityMessage()
message.header.status = 200
message.unity_input.CopyFrom(inputs)

正在加载...
取消
保存