← All slides

PyTorch & Deep Learning for Beginners — Slides

50 lessons, 651 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

ディープラーニングと PyTorch の位置づけ

10 slides

2

テンソルを作る — shape と dtype

13 slides

3

演算・形の変換・ブロードキャスト

13 slides

4

軸を指定した集計とインデックス

13 slides

5

デバイスを切り替える(CPU・MPS・CUDA)

12 slides

6

autograd — 勾配が自動で求まる仕組み

13 slides

7

no_grad・detach・計算グラフの切り方

14 slides

8

勾配降下法を手で書く

25 slides

9

全結合層 nn.Linear の中身

13 slides

10

活性化関数がなぜ要るのか

13 slides

11

損失関数はタスクで決まる

13 slides

12

nn.Module でモデルを定義する

13 slides

13

学習ループの 5 ステップ

11 slides

14

Dataset と DataLoader

13 slides

15

train と eval・評価のときの約束

13 slides

16

最初の分類モデルを最後まで回す

27 slides

17

学習率をどう決めるか

13 slides

18

最適化手法を選ぶ(SGD・Momentum・Adam)

13 slides

19

学習率スケジューラ

13 slides

20

重みの初期化と勾配の消失

14 slides

21

weight decay で重みを小さく保つ

13 slides

22

Dropout

13 slides

23

バッチ正規化と LayerNorm

13 slides

24

検証データと早期終了

13 slides

25

画像データの形と正規化

12 slides

26

畳み込み Conv2d の仕組み

12 slides

27

プーリングと受容野

12 slides

28

小さな CNN を MNIST で学習する

12 slides

29

残差接続と代表的なアーキテクチャ

12 slides

30

データ拡張

12 slides

31

転移学習 — 学習済みの特徴を借りる

12 slides

32

ファインチューニングと層の凍結

12 slides

33

系列データの形とパディング

12 slides

34

埋め込み nn.Embedding

12 slides

35

RNN の仕組みと限界

13 slides

36

LSTM と GRU

12 slides

37

注意機構(Attention)を手で書く

13 slides

38

マルチヘッド注意

13 slides

39

位置エンコーディング

13 slides

40

Transformer ブロックを組み立てる

13 slides

41

自作 Transformer で文字を予測する

12 slides

42

既製の Transformer を使う

12 slides

43

学習の記録を残す

14 slides

44

再現性とデバッグ

12 slides

45

推論を速くする

11 slides

46

保存と読み込み

12 slides

47

TorchScript・量子化・torch.compile

12 slides

48

ONNX で書き出して配る

12 slides

49

学習済みモデルを API にする

12 slides

50

総まとめと、次にどこへ行くか

11 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.