Skip to content

Commit

Permalink
make key as string (facebookresearch#1764)
Browse files Browse the repository at this point in the history
Co-authored-by: Jimmy Yang <[email protected]>
  • Loading branch information
jimmytyyang and Jimmy Yang authored Jan 17, 2024
1 parent 39c19b7 commit b813819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def load_state_dict(self, state):
for agent_i, agent in enumerate(self._agents):
if not agent.actor_critic.should_load_agent_state:
continue
agent.load_state_dict(state[agent_i])
agent.load_state_dict(state[str(agent_i)])

def load_ckpt_state_dict(self, ckpt):
for agent in self._agents:
Expand Down

0 comments on commit b813819

Please sign in to comment.