Skip to content

Commit 9bb1538

Browse files
DavyMorganaraffin
andauthored
Fix outdated load_parameters to set_parameters (#1270)
* Update examples.rst * Update changelog Co-authored-by: Antonin Raffin <[email protected]>
1 parent 6b8905a commit 9bb1538

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

docs/guide/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ However, SB3 provides a ``save_replay_buffer()`` and ``load_replay_buffer()`` me
606606
Accessing and modifying model parameters
607607
----------------------------------------
608608

609-
You can access model's parameters via ``load_parameters`` and ``get_parameters`` functions,
609+
You can access model's parameters via ``set_parameters`` and ``get_parameters`` functions,
610610
or via ``model.policy.state_dict()`` (and ``load_state_dict()``),
611611
which use dictionaries that map variable names to PyTorch tensors.
612612

docs/misc/changelog.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,36 @@ Changelog
44
==========
55

66

7+
Release 1.8.0a0 (WIP)
8+
--------------------------
9+
10+
11+
Breaking Changes:
12+
^^^^^^^^^^^^^^^^^
13+
14+
New Features:
15+
^^^^^^^^^^^^^
16+
17+
`SB3-Contrib`_
18+
^^^^^^^^^^^^^^
19+
20+
`RL Zoo`_
21+
^^^^^^^^^
22+
23+
Bug Fixes:
24+
^^^^^^^^^^
25+
26+
Deprecations:
27+
^^^^^^^^^^^^^
28+
29+
Others:
30+
^^^^^^^
31+
32+
Documentation:
33+
^^^^^^^^^^^^^^
34+
- Renamed ``load_parameters`` to ``set_parameters`` (@DavyMorgan)
35+
36+
737
Release 1.7.0 (2023-01-10)
838
--------------------------
939

@@ -1184,3 +1214,4 @@ And all the contributors:
11841214
@Gregwar @ycheng517 @quantitative-technologies @bcollazo @git-thor @TibiGG @cool-RR @MWeltevrede
11851215
@Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875 @yuanmingqi
11861216
@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong
1217+
@DavyMorgan

stable_baselines3/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.0
1+
1.8.0a0

0 commit comments

Comments
 (0)