This commit is contained in:
Jakub Henyk 2023-05-07 18:27:09 +02:00
parent 42ec57f385
commit a0dc9ef9aa

View File

@ -76,7 +76,7 @@ if __name__ == '__main__':
epochs = sys.argv[1]
trainNet(trainloader, criterion, optimizer, int(epochs))
trainNet(trainloader, criterion, optimizer, int(float(epochs)))
PATH = './cifar_net.pth'
torch.save(net.state_dict(), PATH)