Appendix D: Adding Bells and Whistles to the Training Loop 01_main-chapter-code contains the main chapter code.