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

在generate_lyric工程中,生成报错如下,probabilities的格式为(1,1,11143),是不是前面哪里有问题,probabilities的格式应该是有问题的 #17

Open
tryinggo opened this issue Jul 5, 2018 · 1 comment

Comments

@tryinggo
Copy link

tryinggo commented Jul 5, 2018

File "/media/a/000DD2E00004710E/generate_lyrics/generate_lyrics.py", line 292, in
print(probabilities[dyn_seq_length - 1])
IndexError: index 1 is out of bounds for axis 0 with size 1

@tryinggo
Copy link
Author

tryinggo commented Jul 5, 2018

已经解决: pred_word = pick_word(probabilities[0][dyn_seq_length - 1], int_to_vocab)

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