Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thgpddl authored Sep 26, 2022
1 parent 733bb22 commit a711b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
optimizer = optim.SGD(model.parameters(), lr=0.01) # 设定优化器

if __name__ == "__main__":
epoch = 20
epoch = 10
loop = Loop(model=model, train_loader=train_loader, test_loader=test_loader, loss_fn=F.nll_loss, optimizer=optimizer, device=device)
for epoch in range(1, epoch + 1):
loop.train(epoch)
Expand Down

0 comments on commit a711b8b

Please sign in to comment.