deep-learning-from-scratch-3
deep-learning-from-scratch-3 copied to clipboard
Fix: RNN layer's h2h should be in_size=hidden_size
RNN.h2h should be initialized with in_size=hidden_size.
steps/step59.py is currently working because it instantiates RNN with L.RNN(hidden_size) (i.e., in_size=None), but if you instantiate like L.RNN(hidden_size, 1), it throws a shape mismatch error at self.h2h(self.h) during its forward operation.