Skip to content

Commit

Permalink
Update references/classification/train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored and kit1980 committed Dec 14, 2023
1 parent 2255c4a commit b88457e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion references/classification/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def load_data(traindir, valdir, args):
if args.cache_dataset and os.path.exists(cache_path):
# Attention, as the transforms are also cached!
print(f"Loading dataset_train from {cache_path}")
dataset, _ = torch.load(cache_path, weights_only=True)
# TODO: this could probably be weights_only=True
dataset, _ = torch.load(cache_path, weights_only=False)
else:
# We need a default value for the variables below because args may come
# from train_quantization.py which doesn't define them.
Expand Down

0 comments on commit b88457e

Please sign in to comment.