Skip to content

Fix beam search output_log_prob index error#732

Open
cpm0722 wants to merge 1 commit intoNVIDIA:mainfrom
cpm0722:main
Open

Fix beam search output_log_prob index error#732
cpm0722 wants to merge 1 commit intoNVIDIA:mainfrom
cpm0722:main

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 Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant