Skip to content

Comments

Update transformer.md#1365

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

Update transformer.md#1365
XihWang wants to merge 1 commit intod2l-ai:masterfrom
XihWang:patch-11

Conversation

@XihWang
Copy link

@XihWang XihWang commented Jan 2, 2025

在新版d2l代码中已经改用LazyLinear,这种线性层不用输入的通道数,具体可以见d2l源码网址:https://github.com/d2l-ai/d2l-en/blob/master/d2l/torch.py#L1149

若不更改,会报错参数过多

在新版d2l代码中已经改用LazyLinear,这种线性层不用输入的通道数,具体可以见d2l源码网址:https://github.com/d2l-ai/d2l-en/blob/master/d2l/torch.py#L1149

若不更改,会报错参数过多
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