Skip to content

lab2-PT-MNIST: fix train() to use parameters rather than global values#208

Open
spazm wants to merge 1 commit intoMITDeepLearning:masterfrom
spazm:lab2-training-code-fixes
Open

lab2-PT-MNIST: fix train() to use parameters rather than global values#208
spazm wants to merge 1 commit intoMITDeepLearning:masterfrom
spazm:lab2-training-code-fixes

Conversation

@spazm
Copy link

@spazm spazm commented Jan 8, 2026

  • global values fc_model and loss_function were used inside the train() function rather than the passed parameters model and criterion.
  • duplicates fix in both the student and solution versions of the pytorch notebook.

+ global values `fc_model` and `loss_function` were used inside the train()
  function rather than the passed parameters `model` and `criterion`.
+ fix duplicated in both the student and solution versions of the pytorch
  notebook.
@spazm
Copy link
Author

spazm commented Jan 9, 2026

See also #195 which catches a third issue with the dataloader and #199 which combines all three fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant