karpathy / nn-zero-to-hero

Neural Networks: Zero to Hero
MIT License
10.9k stars 1.33k forks source link

Fix first arg in torch.arange #5

Open HAMZA310 opened 1 year ago

HAMZA310 commented 1 year ago

Hey Andrej, This fixes a shape mismatch error thrown in torch.arange(...). It seems like in the video it's words[:5] (hence 32 rows in prob) but in the final notebook, it's all words (hence >32 rows in prob).