浏览代码

Fix In editor Docker training (#1582)

/hotfix-v0.9.2a
GitHub 6 年前
当前提交
9708d865
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      ml-agents/mlagents/envs/rpc_communicator.py

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


self.server = grpc.server(ThreadPoolExecutor(max_workers=10))
self.unity_to_external = UnityToExternalServicerImplementation()
add_UnityToExternalServicer_to_server(self.unity_to_external, self.server)
self.server.add_insecure_port('localhost:' + str(self.port))
# Using unspecified address, which means that grpc is communicating on all IPs
# This is so that the docker container can connect.
self.server.add_insecure_port('[::]:' + str(self.port))
self.server.start()
self.is_open = True
except:

正在加载...
取消
保存