---
title: "Part 1: Core PyTorch"
id: "13001"
type: "page"
slug: "deeplearningwithpytorchsecondediti"
published_at: "2026-07-19T18:11:49+00:00"
modified_at: "2026-07-20T00:19:34+00:00"
url: "https://preppers-paradise.com/library/deeplearningwithpytorchsecondediti/"
markdown_url: "https://preppers-paradise.com/library/deeplearningwithpytorchsecondediti.md"
excerpt: "This book offers a practical, start-to-finish guide to building deep learning projects using the PyTorch library. Readers will learn fundamental concepts such as tensors and neural network architectures, gain hands-on experience in training models from examples, and discover how to..."
taxonomy_category:
  - "AI &amp; Machine Learning"
  - "Books"
  - "Free Teaser"
taxonomy_post_tag:
  - "artificial intelligence"
  - "data science"
  - "deep learning"
  - "image classification"
  - "machine learning"
  - "neural networks"
  - "programming"
  - "python"
  - "pytorch"
  - "tensors"
---

# Part 1: Core PyTorch

This book offers a practical, start-to-finish guide to building deep learning projects using the PyTorch library. Readers will learn fundamental concepts such as tensors and neural network architectures, gain hands-on experience in training models from examples, and discover how to deploy solutions for real-world applications. Through major projects like developing language models, image generation systems, and medical image segmentation, the content equips learners with essential skills for a career in artificial intelligence development.

This page is free — overview and chapter list only.
Full book: $2.99 USDC · Per chapter: $0.25 USDC
[Buy / open complete book](/library/complete/deeplearningwithpytorchsecondediti/) · [Complete book Markdown](/library/complete/deeplearningwithpytorchsecondediti.md)

## Chapters

1. [About The Cover Illustration](/library/deeplearningwithpytorchsecondediti/01-about-the-cover-illustration/) (Free teaser)
1. [16 Hardware And Software Requirements](/library/deeplearningwithpytorchsecondediti/02-16-hardware-and-software-requirements/) ($0.25)
1. [21 A Pretrained Network That Recognizes The Subject Of An Im](/library/deeplearningwithpytorchsecondediti/03-21-a-pretrained-network-that-recognizes-the-subject-of-an-im/) ($0.25)
1. [22 Generating And Editing Images](/library/deeplearningwithpytorchsecondediti/04-22-generating-and-editing-images/) ($0.25)
1. [24 A Pretrained Network That Describes Scenes](/library/deeplearningwithpytorchsecondediti/05-24-a-pretrained-network-that-describes-scenes/) ($0.25)
1. [Summary](/library/deeplearningwithpytorchsecondediti/06-summary/) ($0.25)
1. [32 Tensors Multidimensional Arrays](/library/deeplearningwithpytorchsecondediti/07-32-tensors-multidimensional-arrays/) ($0.25)
1. [35 Named Tensors](/library/deeplearningwithpytorchsecondediti/08-35-named-tensors/) ($0.25)
1. [36 Tensor Element Types](/library/deeplearningwithpytorchsecondediti/09-36-tensor-element-types/) ($0.25)
1. [391 Views Of Another Tensors Storage](/library/deeplearningwithpytorchsecondediti/10-391-views-of-another-tensors-storage/) ($0.25)
1. [3101 Managing A Tensors Device Attribute](/library/deeplearningwithpytorchsecondediti/11-3101-managing-a-tensors-device-attribute/) ($0.25)
1. [This Chapter Covers](/library/deeplearningwithpytorchsecondediti/12-this-chapter-covers/) ($0.25)
1. [413 Changing The Layout](/library/deeplearningwithpytorchsecondediti/13-413-changing-the-layout/) ($0.25)
1. [433 Representing Scores](/library/deeplearningwithpytorchsecondediti/14-433-representing-scores/) ($0.25)
1. [443 Ready For Training](/library/deeplearningwithpytorchsecondediti/15-443-ready-for-training/) ($0.25)
1. [455 Text Embeddings As A Blueprint](/library/deeplearningwithpytorchsecondediti/16-455-text-embeddings-as-a-blueprint/) ($0.25)
1. [524 Choosing A Linear Model As A First Try](/library/deeplearningwithpytorchsecondediti/17-524-choosing-a-linear-model-as-a-first-try/) ($0.25)
1. [Broadcasting](/library/deeplearningwithpytorchsecondediti/18-broadcasting/) ($0.25)
1. [543 Iterating To Fit The Model](/library/deeplearningwithpytorchsecondediti/19-543-iterating-to-fit-the-model/) ($0.25)
1. [544 Normalizing Inputs](/library/deeplearningwithpytorchsecondediti/20-544-normalizing-inputs/) ($0.25)
1. [551 Computing The Gradient Automatically](/library/deeplearningwithpytorchsecondediti/21-551-computing-the-gradient-automatically/) ($0.25)
1. [552 Optimizers La Carte](/library/deeplearningwithpytorchsecondediti/22-552-optimizers-la-carte/) ($0.25)
1. [555 Autograd Nits And Switching It Off](/library/deeplearningwithpytorchsecondediti/23-555-autograd-nits-and-switching-it-off/) ($0.25)
1. [613 Adding Nonlinearity With Activation Functions](/library/deeplearningwithpytorchsecondediti/24-613-adding-nonlinearity-with-activation-functions/) ($0.25)
1. [616 What Learning Means For A Neural Network](/library/deeplearningwithpytorchsecondediti/25-616-what-learning-means-for-a-neural-network/) ($0.25)
1. [622 Returning To The Linear Model](/library/deeplearningwithpytorchsecondediti/26-622-returning-to-the-linear-model/) ($0.25)
1. [633 Comparing To The Linear Model](/library/deeplearningwithpytorchsecondediti/27-633-comparing-to-the-linear-model/) ($0.25)
1. [711 Downloading Cifar 10](/library/deeplearningwithpytorchsecondediti/28-711-downloading-cifar-10/) ($0.25)
1. [714 Normalizing Data](/library/deeplearningwithpytorchsecondediti/29-714-normalizing-data/) ($0.25)
1. [724 Representing The Output As Probabilities](/library/deeplearningwithpytorchsecondediti/30-724-representing-the-output-as-probabilities/) ($0.25)
1. [725 Training The Classifier](/library/deeplearningwithpytorchsecondediti/31-725-training-the-classifier/) ($0.25)
1. [73 Conclusion](/library/deeplearningwithpytorchsecondediti/32-73-conclusion/) ($0.25)
1. [82 Convolutions In Action](/library/deeplearningwithpytorchsecondediti/33-82-convolutions-in-action/) ($0.25)
1. [823 Looking Further With Depth And Pooling](/library/deeplearningwithpytorchsecondediti/34-823-looking-further-with-depth-and-pooling/) ($0.25)
1. [83 Subclassing Nn Module](/library/deeplearningwithpytorchsecondediti/35-83-subclassing-nn-module/) ($0.25)
1. [84 Training Our Convolutional Neural Network](/library/deeplearningwithpytorchsecondediti/36-84-training-our-convolutional-neural-network/) ($0.25)
1. [85 Model Design](/library/deeplearningwithpytorchsecondediti/37-85-model-design/) ($0.25)
1. [Batch Normalization](/library/deeplearningwithpytorchsecondediti/38-batch-normalization/) ($0.25)
1. [91 A Motivating Example Generating Names Character By Charac](/library/deeplearningwithpytorchsecondediti/39-91-a-motivating-example-generating-names-character-by-charac/) ($0.25)
1. [93 Generating Our Training Data](/library/deeplearningwithpytorchsecondediti/40-93-generating-our-training-data/) ($0.25)
1. [95 Attention](/library/deeplearningwithpytorchsecondediti/41-95-attention/) ($0.25)
1. [952 Scaled Dot Product Causal Self Attention](/library/deeplearningwithpytorchsecondediti/42-952-scaled-dot-product-causal-self-attention/) ($0.25)
1. [Gpt Style Decoder](/library/deeplearningwithpytorchsecondediti/43-gpt-style-decoder/) ($0.25)
1. [Transformer Encoder](/library/deeplearningwithpytorchsecondediti/44-transformer-encoder/) ($0.25)
1. [99 The Vision Transformer](/library/deeplearningwithpytorchsecondediti/45-99-the-vision-transformer/) ($0.25)
1. [Summary 2](/library/deeplearningwithpytorchsecondediti/46-summary-2/) ($0.25)
1. [105 The Forward Process](/library/deeplearningwithpytorchsecondediti/47-105-the-forward-process/) ($0.25)
1. [107 Reversing Diffusion How To Sample](/library/deeplearningwithpytorchsecondediti/48-107-reversing-diffusion-how-to-sample/) ($0.25)
1. [108 Conclusion](/library/deeplearningwithpytorchsecondediti/49-108-conclusion/) ($0.25)
1. [113 What Is A Ct Scan Exactly](/library/deeplearningwithpytorchsecondediti/50-113-what-is-a-ct-scan-exactly/) ($0.25)
1. [On The Shoulders Of Giants](/library/deeplearningwithpytorchsecondediti/51-on-the-shoulders-of-giants/) ($0.25)
1. [1142 Our Data Source The Luna Grand Challenge](/library/deeplearningwithpytorchsecondediti/52-1142-our-data-source-the-luna-grand-challenge/) ($0.25)
1. [122 Parsing Lunas Annotation Data](/library/deeplearningwithpytorchsecondediti/53-122-parsing-lunas-annotation-data/) ($0.25)
1. [123 Loading Individual Ct Scans](/library/deeplearningwithpytorchsecondediti/54-123-loading-individual-ct-scans/) ($0.25)
1. [1244 Extracting A Nodule From A Ct Scan](/library/deeplearningwithpytorchsecondediti/55-1244-extracting-a-nodule-from-a-ct-scan/) ($0.25)
1. [1254 Rendering The Data](/library/deeplearningwithpytorchsecondediti/56-1254-rendering-the-data/) ($0.25)
1. [Dataparallel Vs Distributeddataparallel](/library/deeplearningwithpytorchsecondediti/57-dataparallel-vs-distributeddataparallel/) ($0.25)
1. [1341 The Core Convolutions](/library/deeplearningwithpytorchsecondediti/58-1341-the-core-convolutions/) ($0.25)
1. [1342 The Full Model](/library/deeplearningwithpytorchsecondediti/59-1342-the-full-model/) ($0.25)
1. [1351 The Computebatchloss Function](/library/deeplearningwithpytorchsecondediti/60-1351-the-computebatchloss-function/) ($0.25)
1. [Listing 1317 Masking For Classification Metrics](/library/deeplearningwithpytorchsecondediti/61-listing-1317-masking-for-classification-metrics/) ($0.25)
1. [1372 Interlude The Tqdm Function](/library/deeplearningwithpytorchsecondediti/62-1372-interlude-the-tqdm-function/) ($0.25)
1. [1462 Seeing The Improvement From Data Augmentation](/library/deeplearningwithpytorchsecondediti/63-1462-seeing-the-improvement-from-data-augmentation/) ($0.25)
1. [151 Utilizing A Second Model In Our Project](/library/deeplearningwithpytorchsecondediti/64-151-utilizing-a-second-model-in-our-project/) ($0.25)
1. [1531 The Segment Anything Model Sam](/library/deeplearningwithpytorchsecondediti/65-1531-the-segment-anything-model-sam/) ($0.25)
1. [1541 Trying Out An Off The Shelf Model For Our Project](/library/deeplearningwithpytorchsecondediti/66-1541-trying-out-an-off-the-shelf-model-for-our-project/) ($0.25)
1. [1563 Training A Model To Flag Potential Candidates](/library/deeplearningwithpytorchsecondediti/67-1563-training-a-model-to-flag-potential-candidates/) ($0.25)
1. [1571 How To Fine Tune A Model](/library/deeplearningwithpytorchsecondediti/68-1571-how-to-fine-tune-a-model/) ($0.25)
1. [1574 Saving Our Model](/library/deeplearningwithpytorchsecondediti/69-1574-saving-our-model/) ($0.25)
1. [1613 Initializing A Distributed Program](/library/deeplearningwithpytorchsecondediti/70-1613-initializing-a-distributed-program/) ($0.25)
1. [Listing 169 Creating A Data Loader With Distributedsampler](/library/deeplearningwithpytorchsecondediti/71-listing-169-creating-a-data-loader-with-distributedsampler/) ($0.25)
1. [1651 Pipeline Parallelism](/library/deeplearningwithpytorchsecondediti/72-1651-pipeline-parallelism/) ($0.25)
1. [Listing 1614 Synchronizing Model Parameters](/library/deeplearningwithpytorchsecondediti/73-listing-1614-synchronizing-model-parameters/) ($0.25)
1. [1682 Expert Parallelism](/library/deeplearningwithpytorchsecondediti/74-1682-expert-parallelism/) ($0.25)
1. [This Chapter Covers 2](/library/deeplearningwithpytorchsecondediti/75-this-chapter-covers-2/) ($0.25)
1. [1712 Our Model Behind A Fastapi Server](/library/deeplearningwithpytorchsecondediti/76-1712-our-model-behind-a-fastapi-server/) ($0.25)
1. [Implementation](/library/deeplearningwithpytorchsecondediti/77-implementation/) ($0.25)
1. [Add Quantization](/library/deeplearningwithpytorchsecondediti/78-add-quantization/) ($0.25)
1. [1721 Interoperability Beyond Pytorch With Onnx](/library/deeplearningwithpytorchsecondediti/79-1721-interoperability-beyond-pytorch-with-onnx/) ($0.25)
1. [History And Motivations Behind Torchcompile](/library/deeplearningwithpytorchsecondediti/80-history-and-motivations-behind-torchcompile/) ($0.25)
