Skip to content

Commit 716ff6b

Browse files
committed
Fix benchmark to use standard epochs argument
1 parent 5275a33 commit 716ff6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Pilot3/P3B6/default_model.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ learning_rate = 2e-5
44
eps = 1e-8
55
weight_decay = 0.0
66
batch_size = 10
7-
num_epochs = 10
7+
epochs = 10
88
rng_seed = 13
99
num_train_samples = 10000
1010
num_valid_samples = 10000

Pilot3/P3B6/p3b6.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'weight_decay',
3131
'rng_seed',
3232
'batch_size',
33-
'num_epochs',
33+
'epochs',
3434
]
3535

3636

Pilot3/P3B6/p3b6_baseline_pytorch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def run(args):
134134

135135
criterion = nn.BCEWithLogitsLoss()
136136

137-
for epoch in range(args.num_epochs):
137+
for epoch in range(args.epochs):
138138
train(train_loader, model, optimizer, criterion, args, epoch)
139139
validate(valid_loader, model, args, epoch)
140140

0 commit comments

Comments
 (0)