File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,23 @@ Others:
33
33
Bug Fixes:
34
34
^^^^^^^^^^
35
35
36
+ Documentation:
37
+ ^^^^^^^^^^^^^^
38
+
39
+ Release 2.3.2 (2024-04-27)
40
+ --------------------------
41
+
42
+ Bug Fixes:
43
+ ^^^^^^^^^^
44
+ - Reverted ``torch.load() `` to be called ``weights_only=False `` as it caused loading issue with old version of PyTorch.
45
+
46
+
36
47
Documentation:
37
48
^^^^^^^^^^^^^^
38
49
- Added ER-MRL to the project page (@corentinlger)
39
50
- Updated Tensorboard Logging Videos documentation (@NickLucche)
40
51
52
+
41
53
Release 2.3.1 (2024-04-22)
42
54
--------------------------
43
55
@@ -55,6 +67,11 @@ Release 2.3.0 (2024-03-31)
55
67
56
68
**New defaults hyperparameters for DDPG, TD3 and DQN **
57
69
70
+ .. warning ::
71
+
72
+ Because of ``weights_only=True ``, this release breaks loading of policies when using PyTorch 1.13.
73
+ Please upgrade to PyTorch >= 2.0 or upgrade SB3 version (we reverted the change in SB3 2.3.2)
74
+
58
75
59
76
Breaking Changes:
60
77
^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -447,7 +447,8 @@ def load_from_zip_file(
447
447
file_content .seek (0 )
448
448
# Load the parameters with the right ``map_location``.
449
449
# Remove ".pth" ending with splitext
450
- th_object = th .load (file_content , map_location = device , weights_only = True )
450
+ # Note(antonin): we cannot use weights_only=True, as it breaks with PyTorch 1.13, see GH#1911
451
+ th_object = th .load (file_content , map_location = device , weights_only = False )
451
452
# "tensors.pth" was renamed "pytorch_variables.pth" in v0.9.0, see PR #138
452
453
if file_path == "pytorch_variables.pth" or file_path == "tensors.pth" :
453
454
# PyTorch variables (not state_dicts)
Original file line number Diff line number Diff line change 1
- 2.4.0a0
1
+ 2.3.2
You can’t perform that action at this time.
0 commit comments