mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
[GH-ISSUE #1611] [Bug] Milestone 1: the weights of the Perceptron never change #21567
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AndreaMattiaGaravagno on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1611
Area
TinyTorch
Location
Milestone 1
Description
Milestone 1: the weights of the Perceptron never change
Expected Behavior
The weights of the Perceptron should change between different runs
Environment (TinyTorch bugs only)
Tiny🔥Torch v0.1.10
Python 3.12.3
/home/andre/tinytorch/.venv
@profvjreddi commented on GitHub (Apr 30, 2026):
Fixed in #1617 (merged to dev as
cb68c293d). Module-levelrng = np.random.default_rng(7)intinytorch/src/03_layers/03_layers.pywas reused by everyLinear()weight init, making weights deterministic across runs despite the milestone's on-screen "no random seed" message. Both that seed and the milestone's own data RNG seed are now unseeded. Verified by two-run diff: weights and accuracy now vary.