diff --git a/beginner_source/basics/saveloadrun_tutorial.py b/beginner_source/basics/saveloadrun_tutorial.py index d8636f6a9d..e80d32a6ea 100644 --- a/beginner_source/basics/saveloadrun_tutorial.py +++ b/beginner_source/basics/saveloadrun_tutorial.py @@ -62,7 +62,7 @@ # below we use ``weights_only=False`` because this involves loading the # model, which is a legacy use case for ``torch.save``. -model = torch.load('model.pth', weights_only=False), +model = torch.load('model.pth', weights_only=False) ######################## # .. note:: This approach uses Python `pickle `_ module when serializing the model, thus it relies on the actual class definition to be available when loading the model.