[GH-ISSUE #1109] Unit Tested Failed for Module 03 in Tinytorch #1696

Closed
opened 2026-04-11 08:02:52 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Takosaga on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1109

Originally assigned to: @profvjreddi on GitHub.

Using notebook created from tito module start 03, the tests fail in the notebook due to requires_grad=True flag for the weight and bias even though it states the flag marks these tensors for gradient computation in Module 06. Though I remove in the notebook to pass the test, tito module complete 03 has Unit tests failed at test_unit_linear_layer()

I used tito module reset 03 to reset notebook and still get same errors.

Originally created by @Takosaga on GitHub (Jan 13, 2026). Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1109 Originally assigned to: @profvjreddi on GitHub. Using notebook created from `tito module start 03`, the tests fail in the notebook due to `requires_grad=True` flag for the weight and bias even though it states the flag marks these tensors for gradient computation in Module 06. Though I remove in the notebook to pass the test, `tito module complete 03` has ❌ Unit tests failed at `test_unit_linear_layer()` I used `tito module reset 03` to reset notebook and still get same errors.
Author
Owner

@profvjreddi commented on GitHub (Jan 13, 2026):

Hi!

This is the same issue I just fixed this morning.

Module 03 was incorrectly using requires_grad=True before it's introduced in Module 06.

Please pull the latest dev branch and run tito module reset 03 again.

The fix is in commit https://github.com/harvard-edge/cs249r_book/commit/a36340690

Thanks for reporting!

I will start creating tags so it is easier to know which fixes were done etc.

<!-- gh-comment-id:3745604538 --> @profvjreddi commented on GitHub (Jan 13, 2026): Hi! This is the same issue I just fixed this morning. Module 03 was incorrectly using requires_grad=True before it's introduced in Module 06. Please pull the latest dev branch and run tito module reset 03 again. The fix is in commit https://github.com/harvard-edge/cs249r_book/commit/a36340690 Thanks for reporting! I will start creating tags so it is easier to know which fixes were done etc.
Author
Owner

@profvjreddi commented on GitHub (Jan 23, 2026):

v0.1.4 is now released with this fix! See #1129 for update instructions.

<!-- gh-comment-id:3787479268 --> @profvjreddi commented on GitHub (Jan 23, 2026): v0.1.4 is now released with this fix! See #1129 for update instructions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#1696