Skip to content

Commit 6420e75

Browse files
committed
Load checkpoints with weights_only=False in torch estimator
1 parent 1290952 commit 6420e75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gluonts/torch/model/estimator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def train_model(
228228
f"Loading best model from {checkpoint.best_model_path}"
229229
)
230230
best_model = training_network.__class__.load_from_checkpoint(
231-
checkpoint.best_model_path
231+
checkpoint.best_model_path,
232+
weights_only=False,
232233
)
233234
else:
234235
best_model = training_network

0 commit comments

Comments
 (0)