karpathy/nn-zero-to-hero

Missing L.backward() before constructing graph

Closed this issue · 1 comments

In notebook micrograd_lecture_first_half_roughly.ipynb

L.backward() is missing before creating graph draw_dot(L)

because of this gradient is not showing up.

this is used for lecture walk-through.