Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jul 25, 2024
1 parent 6268443 commit 1420edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/modules/models/multiagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def from_stateful_net(self, stateful_net: nn.Module):
self.params.data.update_(params.data)

def __repr__(self):
empty_net = self.__dict__["_empty_net"]
empty_net = self._empty_net
with self.params.to_module(empty_net):
module_repr = indent(str(empty_net), 4 * " ")
n_agents = indent(f"n_agents={self.n_agents}", 4 * " ")
Expand Down

0 comments on commit 1420edc

Please sign in to comment.