Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rkuo2000 opened this issue Nov 10, 2017 · 0 comments
Open

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

rkuo2000 opened this issue Nov 10, 2017 · 0 comments

Comments

@rkuo2000
Copy link

rkuo2000 commented Nov 10, 2017

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant