sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 960 forks source link

Better error message #25

Closed hunkim closed 8 years ago

hunkim commented 8 years ago

It is reported in #9 and #11. When we have a small data with large seq_length and batch_size small, num_batches becomes 0.

This prints a weird error message:

ydata[-1] = xdata[0]
IndexError: index 0 is out of bounds for axis 0 with size 0

I think it's safe to explain the error better.

sherjilozair commented 8 years ago

Thanks! LGTM!