Skip to content

Commit 2019b41

Browse files
authored
[rllib] Remove legacy multiagent support (#2975)
* remove legacy * remove reshaper
1 parent fcef4ed commit 2019b41

File tree

8 files changed

+0
-344
lines changed

8 files changed

+0
-344
lines changed

python/ray/rllib/examples/legacy_multiagent/__init__.py

Whitespace-only changes.

python/ray/rllib/examples/legacy_multiagent/multiagent_mountaincar.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

python/ray/rllib/examples/legacy_multiagent/multiagent_mountaincar_env.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

python/ray/rllib/examples/legacy_multiagent/multiagent_pendulum.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

python/ray/rllib/examples/legacy_multiagent/multiagent_pendulum_env.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

python/ray/rllib/models/catalog.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from ray.rllib.models.fcnet import FullyConnectedNetwork
1818
from ray.rllib.models.visionnet import VisionNetwork
1919
from ray.rllib.models.lstm import LSTM
20-
from ray.rllib.models.multiagentfcnet import MultiAgentFullyConnectedNetwork
2120

2221
MODEL_CONFIGS = [
2322
# === Built-in options ===
@@ -178,13 +177,6 @@ def _get_model(inputs, num_outputs, options, state_in, seq_lens):
178177

179178
obs_rank = len(inputs.shape) - 1
180179

181-
# num_outputs > 1 used to avoid hitting this with the value function
182-
if isinstance(
183-
options.get("custom_options", {}).get(
184-
"multiagent_fcnet_hiddens", 1), list) and num_outputs > 1:
185-
return MultiAgentFullyConnectedNetwork(inputs, num_outputs,
186-
options)
187-
188180
if obs_rank > 1:
189181
return VisionNetwork(inputs, num_outputs, options)
190182

python/ray/rllib/models/multiagentfcnet.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

python/ray/rllib/utils/reshaper.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)