Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Jul 30, 2024
1 parent b7c8613 commit 6ee7943
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmarl/models/gru.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(
device: DEVICE_TYPING,
compile: bool,
centralised: bool,
share_params: bool,
):
super().__init__()
self.input_size = input_size
Expand All @@ -80,6 +81,9 @@ def __init__(
self.compile = compile
self.centralised = centralised

if not share_params:
raise NotImplementedError

if self.centralised:
input_size = input_size * self.n_agents

Expand Down Expand Up @@ -216,6 +220,7 @@ def __init__(
self.n_agents,
self.device,
centralised=self.centralised,
share_params=self.share_params,
compile=self.compile,
)
else:
Expand Down

0 comments on commit 6ee7943

Please sign in to comment.