From b9e5d152ca0bbed2b046e8bf284b373680ec4e0c Mon Sep 17 00:00:00 2001 From: Eric Maynard Date: Thu, 25 Sep 2025 13:24:28 -0700 Subject: [PATCH] remove dangling comma --- beginner_source/basics/saveloadrun_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/basics/saveloadrun_tutorial.py b/beginner_source/basics/saveloadrun_tutorial.py index d8636f6a9de..e80d32a6eaa 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.