Skip to content

Commit 8ec9b84

Browse files
committed
set epochs from parser
1 parent f814d9c commit 8ec9b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPointMLTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ def main():
665665
train_loss = []
666666
val_loss = []
667667

668-
num_epochs = 2000
668+
num_epochs = args.epochs
669669
for epoch in range(num_epochs):
670670
train_loss.append(train_one_epoch(model, train_loader, criterion, optimizer, device))
671671
val_loss.append(validate_one_epoch(model, val_loader, criterion, device))

0 commit comments

Comments
 (0)