Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4d559e

Browse files
authoredMay 7, 2023
Update MNIST Classification Model..py
Added Logging for Loss vs Epoch
1 parent 3e79806 commit c4d559e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎MNIST Classification Model..py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import torch.nn as nn
55
import matplotlib.pyplot as plt
66
from time import time
7+
from torch.utils.tensorboard import SummaryWriter
8+
writer = SummaryWriter()
79

810
train = dt.MNIST(root="./datasets", train=True, transform=trans.ToTensor(), download=True)
911
test = dt.MNIST(root="./datasets", train=False, transform=trans.ToTensor(), download=True)

0 commit comments

Comments
 (0)
Please sign in to comment.