train.py
train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)

start = time()

num_epochs = 5
for epoch in range(1, num_epochs + 1):
    train(model, device, train_loader, optimizer, criterion, epoch)

print(f"Total time = {time() - start}")
Train Epoch: 1      Loss: 262.142485
Train Epoch: 2      Loss: 108.009725
Train Epoch: 3      Loss: 75.228473
Train Epoch: 4      Loss: 58.578084
Train Epoch: 5      Loss: 46.702728
Total time = 42.9564