Maybe a mistake in lstm_generator.py
liu09114 opened this issue · 2 comments
liu09114 commented
In the lstm_generator.py, line 71 Hin[t,1:1+d] = X[t] and 72 Hin[t,1+d:] = prev should be exchanged.
Because the hidden size is d, which is the dimension of the prev.
But i don't why it doesn't raise an error, anyone can explain this?
liu09114 commented
I know why it doesn't raise an error. The default parameter of the image encoding size (also the input size) id equal to the hidden size.
But the mistake should be correct.
karpathy commented
oops, i think you're probably right. If you try to meddle with the sizes it would error.