mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
Module 09 - Minor Computation Error #490
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 @ngbolin on GitHub (Jan 27, 2026).
Hello, there seems to be a minor computation error for module 09 in one of the examples - attaching the screenshot for reference.
I think the (2, 2) element of the Position (1, 1) should be 7 instead of 8, since we are just taking the trace.
@profvjreddi commented on GitHub (Jan 27, 2026):
Thanks for catching this @ngbolin! You're absolutely right.
The fix: Position (1,1) with region 6,7],[0,1 and kernel 1,0],[0,1 correctly computes to:
6×1 + 7×0 + 0×0 + 1×1 = 6 + 0 + 0 + 1 = 7I just corrected this in the convolution module. The final output is also updated now -- correctly shown as 7,9],[5,7.
Fix merged into dev: https://github.com/harvard-edge/cs249r_book/commit/77baa56d2
@all-contributors please add @ngbolin for ✍️ Doc in Tinytorch
@profvjreddi commented on GitHub (Jan 27, 2026):
I will release a version later today for v.0.1.5 which has a ton of bug fixes (esp. in pytest 😓 )
@github-actions[bot] commented on GitHub (Jan 27, 2026):
I've added @ngbolin as a contributor to book! 🎉
Recognized for: doc
Based on: @all-contributors please add @ngbolin for ✍️ Doc in Tinytorch
The contributor list has been updated in:
book/.all-contributorsrcbook/README.mdREADME.mdWe love recognizing our contributors! ❤️
@ngbolin commented on GitHub (Jan 27, 2026):
Hi @profvjreddi, there are a few (very minor) errors in module 09:
Thank you!
@profvjreddi commented on GitHub (Jan 27, 2026):
You are two steps ahead of me! I love it!!! 🎉
After you caught the other ones, I found these and already fixed them. The corrections have been pushed to
devand are included in the tinytorch-v0.1.5 release.Thanks again for your sharp eye! 👀