浏览代码

worker_num to worker_id (#238)

/tag-0.2.1
GitHub 7 年前
当前提交
9405edec
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      docs/Unity-Agents---Python-API.md

4
docs/Unity-Agents---Python-API.md


```python
from unityagents import UnityEnvironment
env = UnityEnvironment(file_name=filename, worker_num=0)
env = UnityEnvironment(file_name=filename, worker_id=0)
* `worker_num` indicates which port to use for communication with the environment. For use in parallel training regimes such as A3C.
* `worker_id` indicates which port to use for communication with the environment. For use in parallel training regimes such as A3C.
## Interacting with a Unity Environment

正在加载...
取消
保存