Skip to content

Comments

Update seq2seq.md#1363

Open
XihWang wants to merge 1 commit intod2l-ai:masterfrom
XihWang:patch-10
Open

Update seq2seq.md#1363
XihWang wants to merge 1 commit intod2l-ai:masterfrom
XihWang:patch-10

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