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

generator.py, line 31, in step candidate = prev_candidates[b_ix] + [t_ix]. TypeError: list indices must be integers or slices, not float #11

Closed
AegeanYan opened this issue Feb 6, 2023 · 0 comments

Comments

@AegeanYan
Copy link

Hello, I'm interested in your work. But when I'm running the run.sh, I found this error and it seems that the beam_ix and token_ix in generator.py is float, not int. For example, the beam_ix is tensor([0.8333, 0.1667, 0.5000, 0.0000, 0.3333, 0.6667], device='cuda:0'), I wonder how I can fix it. Thanks

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