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 from caption.py #169

Open
tiva-OG opened this issue Apr 11, 2022 · 1 comment
Open

Indexerror from caption.py #169

tiva-OG opened this issue Apr 11, 2022 · 1 comment

Comments

@tiva-OG
Copy link

tiva-OG commented Apr 11, 2022

prev_word_inds = top_k_words / vocab_size # (s)

prev_word_inds returns a float. I really don't understand why the division there. Someone should please help me out. Thanks.

@dcdc2260
Copy link

prev_word_inds = top_k_words / vocab_size # (s)

prev_word_inds returns a float. I really don't understand why the division there. Someone should please help me out. Thanks.

Hello!you could change '/' to '//',The result should be int

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

2 participants