You are reading immutable version 4. The current guide may be newer.

Study the paper

Deep Residual Learning for Image Recognition

Lessons, visuals, quizzes, flashcards, and resources—organized in teaching order.

All activities

Dimension Matching and Projection Shortcuts

Residual Building Block with Projection Shortcut: step by step

Interactive study view

Residual Building Block with Projection Shortcut: step by step

Illustrative teaching data

Follow the existing bounded walkthrough in its intended sequence.

Step 1 of 5

  1. Step 1

    Define input vector x of dimension 2.

  2. Step 2

    Define residual output F of dimension 3.

  3. Step 3

    Define projection matrix W_s of shape 3x2.

  4. Step 4

    Multiply W_s by x to get a 3-dimensional shortcut vector.

  5. Step 5

    Add the shortcut vector to F to obtain the final output vector y.