ThisisanattempttomodifyDiveintoDeepLearning,BerkeleySTAT157(Spring2019)textbook'scodeintoPyTorch.