Skip to content

Commit

Permalink
Fix PPO names (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini authored Feb 1, 2024
1 parent ca33835 commit 0305223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmarl/algorithms/ippo.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ def process_batch(self, group: str, batch: TensorDictBase) -> TensorDictBase:
loss = self.get_loss_and_updater(group)[0]
loss.value_estimator(
batch,
params=loss.critic_params,
target_params=loss.target_critic_params,
params=loss.critic_network_params,
target_params=loss.target_critic_network_params,
)

return batch
Expand Down
4 changes: 2 additions & 2 deletions benchmarl/algorithms/mappo.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def process_batch(self, group: str, batch: TensorDictBase) -> TensorDictBase:
loss = self.get_loss_and_updater(group)[0]
loss.value_estimator(
batch,
params=loss.critic_params,
target_params=loss.target_critic_params,
params=loss.critic_network_params,
target_params=loss.target_critic_network_params,
)

return batch
Expand Down

0 comments on commit 0305223

Please sign in to comment.