Skip to content

Commit

Permalink
fix DiscreteRLPolicy set_state bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinyu Wang authored and Jinyu-W committed May 15, 2023
1 parent ef2a358 commit a9a6381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maro/rl/policy/discrete_rl_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_state(self) -> dict:
}

def set_state(self, policy_state: dict) -> None:
self._q_net.set_state(policy_state)
self._q_net.set_state(policy_state["net"])
self._warmup = policy_state["policy"]["warmup"]
self._call_count = policy_state["policy"]["call_count"]

Expand Down

0 comments on commit a9a6381

Please sign in to comment.