-
Notifications
You must be signed in to change notification settings - Fork 14
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
ret_sentences.append(' '.join([self.model.vocab.index2word[idx] for idx in d[0]]).replace('EOS','')) KeyError: 9.5367431640625e-07 #9
Comments
maybe the problem it's not here , i suggest find other formula like in prev_k = best_scores_id / num_words change / to //,maybe can solve your problem |
maybe you can find beam_search related files in moel, in this work, this author use '\' instead '\\' ,is wrong
有毒,不能碰
***@***.***
…------------------ 原始邮件 ------------------
发件人: "HLTCHKUST/MoEL" ***@***.***>;
发送时间: 2023年12月12日(星期二) 晚上9:08
***@***.***>;
***@***.******@***.***>;
主题: Re: [HLTCHKUST/MoEL] ret_sentences.append(' '.join([self.model.vocab.index2word[idx] for idx in d[0]]).replace('EOS','')) KeyError: 9.5367431640625e-07 (Issue #9)
MOEL-masterlutils beam_omt_experts.py", line 108, in get_hypothesisk = selfprev ks[il[k]IndexError: tensors used as indices must be long, int, byte or bool tensors
image.png (view on web)
Execuse me, When I run the code, I met this error. Do you know what happened?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run the code for my dataset, I met this error. Do you know what happened?
The text was updated successfully, but these errors were encountered: