kakaoenterprise / JORLDY

Repository for Open Source Reinforcement Learning Framework JORLDY
Apache License 2.0
359 stars 50 forks source link

Modify worker_id generation range #45

Closed zenoengine closed 2 years ago

zenoengine commented 2 years ago

:star2: Hello! Thanks for contributing JORLDY!

Checklist

Please check if you consider the following items.

Types of changes

Bugfix

Test Configuration

Description

Modify worker id generation range

Sometimes, ml_agent.py raised exception.

Exception has occurred: OverflowError
bind(): port must be 0-65535.

Internally, ml_agent decides to port number like this.

# ml-agents_env/enviornment.py
if base_port is None:
base_port = (
    self.BASE_ENVIRONMENT_PORT if file_name else self.DEFAULT_EDITOR_PORT
)
self._port = base_port + worker_id