Skip to content

Conversation

@cpm0722
Copy link

@cpm0722 cpm0722 commented Jul 25, 2023

output_log_probs's shape should be (gen_length, batch_size*beam_width),
but id_offset assumes that the shape of tensor is (max_input_length+gen_legnth, batch_size*beam_width).

So, I define new index gen_offset which assumes that the shape of tensor is (gen_length, batch_size*beam_width).

beam_width),
but id_offset assumes that the shape of tensor is ((max_input_length +
gen_legnth), batch_size * beam_width).
@cpm0722 cpm0722 changed the title beam search output_log_prob index error Fix beam search output_log_prob index error Jul 25, 2023
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

Successfully merging this pull request may close these issues.

1 participant