Skip to content

Commit b3c6a58

Browse files
author
Jinyu Wang
committed
fix DiscretePolicyGradient set_state bug; upgrade pymaro version
1 parent d21fb40 commit b3c6a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

maro/__misc__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Licensed under the MIT license.
33

44

5-
__version__ = "0.3.2a2"
5+
__version__ = "0.3.2a3"
66

77
__data_version__ = "0.2"

maro/rl/policy/discrete_rl_policy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def get_state(self) -> dict:
336336
}
337337

338338
def set_state(self, policy_state: dict) -> None:
339-
self._policy_net.set_state(policy_state)
339+
self._policy_net.set_state(policy_state["net"])
340340
self._warmup = policy_state["policy"]["warmup"]
341341
self._call_count = policy_state["policy"]["call_count"]
342342

0 commit comments

Comments
 (0)