fix
This commit is contained in:
@@ -32,7 +32,9 @@ def load_checkpoint(
|
||||
"""
|
||||
|
||||
assert os.path.isfile(checkpoint_path)
|
||||
checkpoint_dict = torch.load(checkpoint_path, map_location=device)
|
||||
checkpoint_dict = torch.load(
|
||||
checkpoint_path, map_location=device, weights_only=True
|
||||
)
|
||||
iteration = checkpoint_dict["iteration"]
|
||||
learning_rate = checkpoint_dict["learning_rate"]
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user