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

Update seq2seq.md #1363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update seq2seq.md #1363

wants to merge 1 commit into from

Conversation

XihWang
Copy link

@XihWang XihWang commented Dec 29, 2024

根据新版d2l中class EncoderDecoder的定义[1],其返回值只有一个,因此建议将“_”删除,否则会报错:ValueError: too many values to unpack (expected 2)
[1] https://github.com/d2l-ai/d2l-en/blob/master/d2l/torch.py#L951
修改前
image
修改后
image

根据新版d2l中class EncoderDecoder的定义[1],其返回值只有一个,因此建议将“_”删除,否则会报错:ValueError: too many values to unpack (expected 2)
[1] https://github.com/d2l-ai/d2l-en/blob/master/d2l/torch.py#L951
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