Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Apr 5, 2024
1 parent 2c48aba commit 627c8ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmarl/models/cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ def __init__(
device=self.device,
**cnn_net_kwargs,
)
example_net = self.cnn._empty_net
if hasattr(self.cnn, "_empy_net"):
example_net = self.cnn._empty_net
else:
example_net = self.cnn.agent_networks[0]
else:
self.cnn = nn.ModuleList(
[
Expand Down

0 comments on commit 627c8ff

Please sign in to comment.