changed order
Some checks failed
s444354-training/pipeline/head There was a failure building this commit
Some checks failed
s444354-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
555fb25ac9
commit
fb3ea65baa
@ -132,7 +132,7 @@ def evaluate(model, val_loader):
|
||||
return model.validation_epoch_end(outputs)
|
||||
|
||||
@ex.capture
|
||||
def fit(epochs, lr, model, train_loader, val_loader, opt_func=torch.optim.SGD, _run):
|
||||
def fit(epochs, lr, model, train_loader, val_loader,_run, opt_func=torch.optim.SGD):
|
||||
history = []
|
||||
optimizer = opt_func(model.parameters(), lr)
|
||||
for epoch in range(epochs):
|
||||
|
Loading…
Reference in New Issue
Block a user