fix8
This commit is contained in:
parent
3e2e907dd6
commit
0cc0810ad7
2
train.py
2
train.py
@ -74,7 +74,7 @@ if __name__ == '__main__':
|
|||||||
criterion = nn.CrossEntropyLoss()
|
criterion = nn.CrossEntropyLoss()
|
||||||
optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.9)
|
optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.9)
|
||||||
|
|
||||||
epochs = sys.argv[1]
|
epochs = int(sys.argv[1])
|
||||||
|
|
||||||
trainNet(trainloader, criterion, optimizer, epochs)
|
trainNet(trainloader, criterion, optimizer, epochs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user