Skip to content

Commit 053d447

Browse files
author
Raul Puri
committed
fixed main load argeparse
1 parent 8753733 commit 053d447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

new_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setup_model_and_optim(args, train_data, tokenizer):
4343

4444

4545
optim = None
46-
if args.load != '':
46+
if args.load is not None and args.load != '':
4747
sd = torch.load(args.load, map_location='cpu')
4848
if args.load_optim:
4949
#optim_sd = torch.load(os.path.join(os.path.dirname(args.load), 'optim.pt'), map_location='cpu')

0 commit comments

Comments
 (0)