mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 02:28:25 -05:00
[GH-ISSUE #1161] [Module 3] Typo on Xavier/Glorot definitions throughout module #5673
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 @oscarf189 on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1161
1a80e57fa0/tinytorch/src/03_layers/03_layers.py (L138)Minor typo, unclear if solution is to rename or update formula.
There are multiple references to Xavier/Glorot having a sigma of
\sqrt(1/fan_in). However, this corresponds to LeCun --> Equation 15 in "Efficient BackProp". The Xavier/Glorot issqrt(2/(fan_in+fan_out)), this one is defined in Equation 12 in "Understanding the difficulty of training deep feedforward neural networks"@profvjreddi commented on GitHub (Feb 6, 2026):
Hi @oscarf189! Thanks for catching this 🙏 You're right on! The formula sqrt(1/fan_in) is LeCun initialization. I've updated the terminology in
c1c8c11eegood sir! Thank you again, love it that you folks are catching all the mistakes 🤗 Thank you!@all-contributors please add @oscarf189 as a contributor for ✍️ Doc in TinyTorch
@github-actions[bot] commented on GitHub (Feb 6, 2026):
I've added @oscarf189 as a contributor to tinytorch! 🎉
Recognized for: doc
Project: tinytorch (explicitly mentioned in comment)
Based on: @all-contributors please add @oscarf189 as a contributor for ✍️ Doc in TinyTorch
The contributor list has been updated in:
tinytorch/.all-contributorsrctinytorch/README.mdREADME.mdWe love recognizing our contributors! ❤️