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

bug in - advance method | Beam_sercher.py #51

Open
Madhur-1 opened this issue Dec 12, 2022 · 0 comments
Open

bug in - advance method | Beam_sercher.py #51

Madhur-1 opened this issue Dec 12, 2022 · 0 comments

Comments

@Madhur-1
Copy link

Change:
father_beam_idx = best_output_accumulate_scores_id / vocab_plus_input_size
To:
father_beam_idx = best_output_accumulate_scores_id // vocab_plus_input_size

To ensure the father_beam_idx tensor contains int and thus proper index values.
Else the tensor object lead to float values and lead to error with the index_select() method in Torch used in the same function,

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