lstm-char-cnn-tensorflow icon indicating copy to clipboard operation
lstm-char-cnn-tensorflow copied to clipboard

IndexError: index 0 is out of bounds for axis 0 with size 0

Open rkuo2000 opened this issue 6 years ago • 0 comments

Python 3.6.3, tensorflow-1.4.0 on Windows 7 Ultimate SP1 python main.py --dataset ptb self.loader = BatchLoader(self.data_dir, self.dataset_name, self.batch_size, self.seq_length, self.max_word_length) File "C:\Users\akuo\lstm-char-cnn-tensorflow\batch_loader.py", line 52, in init ydata[-1] = data[0].copy() IndexError: index 0 is out of bounds for axis 0 with size 0

there are quite a few -1 in batch_loader.py, should I replace them all to 0 ?

rkuo2000 avatar Nov 10 '17 20:11 rkuo2000