Model saving

This commit is contained in:
Marcin Kostrzewski 2022-04-24 22:23:53 +02:00
parent d95bf0d73d
commit 0751bcce7e

View File

@ -109,3 +109,6 @@ for t in range(epochs):
train(train_dataloader, model, loss_fn, optimizer)
test(test_dataloader, model, loss_fn)
print("Done!")
torch.save(model.state_dict(), './model_out')
print("Model saved in ./model_out file.")