mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
[PR #1323] [MERGED] fix(tinytorch): correct export path mismatch for modules 09 and 13 #3151
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?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1323
Author: @Shashank-Tripathi-07
Created: 4/11/2026
Status: ✅ Merged
Merged: 4/12/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/tinytorch-export-path-mismatch📝 Commits (1)
b267aabfix(tinytorch): correct export path mismatch for modules 09 and 13📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
tinytorch/tito/commands/export_utils.py(+2 -2)📄 Description
Summary
SOURCE_MAPPINGSinexport_utils.pyuses wrong keys for modules 09 and 13 — mismatching theirdefault_expdirectives. Aftertito module complete 09/13, exported files land at the wrong package path, causingModuleNotFoundErroron every import with zero workaround.Area
Changes
("core", "convolutions")→("core", "spatial")— aligns with#| default_exp core.spatialin09_convolutions.py("core", "transformer")→("core", "transformers")— aligns with#| default_exp core.transformersin13_transformers.pyBoth source files have always declared the correct names via
default_exp. The mapping was just never synced.Testing
tito module completeby copying exported files to both wrong path (old) and correct path (new), confirmedModuleNotFoundErrorwith old keys, clean import with new keys:Related Issues
None — discovered during local testing of the module workflow.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.