karpathy / nn-zero-to-hero

Neural Networks: Zero to Hero
MIT License
10.88k stars 1.32k forks source link

Problem with makemore_part2_mlp.ipynb #50

Open dewijones92 opened 1 month ago

dewijones92 commented 1 month ago
loss = -prob[torch.arange(32), Y].log().mean()
loss
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
Cell In[20], line 1
----> 1 loss = -prob[torch.arange(32), Y].log().mean()
      2 loss

IndexError: shape mismatch: indexing tensors could not be broadcast together with shapes [32], [228146]
dewijones92 commented 1 month ago

btw, I have a fix I will make a PR now

thanks so much for this AWESEOME video series @karpathy :)