Implement a CNN from Scratch in PyTorch
Mediumauto-graded
Build convolutional layers from raw tensor operations — implementing forward passes with cross-correlation and learnable filters.
Solve it
Check your answer
The grader verifies properties of your implementation, so a correct solution written differently from ours still passes.
pip install torchleet
from torchleet import check
check("cnn-scratch", Conv2dCustom, MaxPool2dCustom)