← Open Source

srush/Autodiff-Puzzles on GitHub: Jupyter Notebook.

Jupyter Notebook
Momentum
+0stars in 24 hours0.0%
519
Stars
45
Forks
+0
This week
1
Contributors
Created 2022-10-30 · Updated 2026-11-24 · #23124 today
Top developers
README

Autodiff Puzzles

Click here to get started:

This notebook contains a series of self-contained puzzles for learning about derivatives in tensor libraries. It is the 3rd puzzle set in a series of puzzles about programming for deep learning (Tensor Puzzles, GPU Puzzles).

Your goal in these puzzles is to implement the derivatives for each core function. In each case the function takes in a tensor x and returns a tensor f(x), so your job is to compute $\frac{d f(x)_o}{dx_i}$ for all indices $o$ and $i$. If you get discouraged, just remember, you did this in high school (it just had way less indexing).

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store