change the resnet eval mode

This commit is contained in:
yunjey
2017-03-11 15:22:52 +09:00
parent 3ac1e9c2ef
commit 92aa5982f5
2 changed files with 0 additions and 2 deletions

View File

@ -130,7 +130,6 @@ for epoch in range(80):
optimizer = torch.optim.Adam(resnet.parameters(), lr=lr)
# Test
resnet.eval()
correct = 0
total = 0
for images, labels in test_loader:

View File

@ -130,7 +130,6 @@ for epoch in range(80):
optimizer = torch.optim.Adam(resnet.parameters(), lr=lr)
# Test
resnet.eval()
correct = 0
total = 0
for images, labels in test_loader: