Reuse parameters if variables have different names #446
Unanswered
Zettelkasten
asked this question in
Q&A
Replies: 1 comment 4 replies
|
Do you have the latest code? In |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey everybody!
I want to share parameters between two layers, but their variables have different names. Namely, I have a linear layer (with weight matrix "W"), and a self-attention layer (with weight matrix "QKV").
I tried to do
where
but that complains about
auto_create_missingbeingFalse:If I set that to
True(not sure if that would be what I want though?), it complains about non-matching names:How should it be? Thanks a lot! :)
All reactions