Skip to content

Commit a9a6381

Browse files
Jinyu WangJinyu-W
Jinyu Wang
authored andcommitted
fix DiscreteRLPolicy set_state bug
1 parent ef2a358 commit a9a6381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maro/rl/policy/discrete_rl_policy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def get_state(self) -> dict:
244244
}
245245

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

0 commit comments

Comments
 (0)