Skip to content
Mermaid templates

ResNet Block

Residual block — identity shortcut + 2 conv layers.

Template previewMermaid
Rendering…

Make it your own.

flowchart TD
X[Input x] --> C1[Conv 3x3]
C1 --> BN1[BatchNorm]
BN1 --> R1[ReLU]
R1 --> C2[Conv 3x3]
C2 --> BN2[BatchNorm]
X --> Add((+))
BN2 --> Add
Add --> R2[ReLU]
R2 --> Y[Output]
note[Shortcut: identity if dims match,\nelse 1×1 conv to project] -.- Add