Skip to content

Commit

Permalink
[rllib] Remove legacy multiagent support (ray-project#2975)
Browse files Browse the repository at this point in the history
* remove legacy

* remove reshaper
  • Loading branch information
ericl authored Oct 1, 2018
1 parent fcef4ed commit 2019b41
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 344 deletions.
Empty file.

This file was deleted.

This file was deleted.

60 changes: 0 additions & 60 deletions python/ray/rllib/examples/legacy_multiagent/multiagent_pendulum.py

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions python/ray/rllib/models/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ray.rllib.models.fcnet import FullyConnectedNetwork
from ray.rllib.models.visionnet import VisionNetwork
from ray.rllib.models.lstm import LSTM
from ray.rllib.models.multiagentfcnet import MultiAgentFullyConnectedNetwork

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

obs_rank = len(inputs.shape) - 1

# num_outputs > 1 used to avoid hitting this with the value function
if isinstance(
options.get("custom_options", {}).get(
"multiagent_fcnet_hiddens", 1), list) and num_outputs > 1:
return MultiAgentFullyConnectedNetwork(inputs, num_outputs,
options)

if obs_rank > 1:
return VisionNetwork(inputs, num_outputs, options)

Expand Down
43 changes: 0 additions & 43 deletions python/ray/rllib/models/multiagentfcnet.py

This file was deleted.

49 changes: 0 additions & 49 deletions python/ray/rllib/utils/reshaper.py

This file was deleted.

0 comments on commit 2019b41

Please sign in to comment.