Skip to content

Commit

Permalink
fix num_agent bug in MAT_network
Browse files Browse the repository at this point in the history
  • Loading branch information
strivebfq committed Sep 21, 2023
1 parent 8797b09 commit 38a9b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openrl/modules/networks/MAT_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def get_actions(
):
obs = obs.reshape(-1, self.n_agent, self.obs_dim)
if action_masks is not None:
action_masks = action_masks.reshape(-1, self.num_agents, self.action_dim)
action_masks = action_masks.reshape(-1, self.n_agent, self.action_dim)

# state unused
ori_shape = np.shape(obs)
Expand Down

0 comments on commit 38a9b86

Please sign in to comment.