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 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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_missing
beingFalse
: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! :)
Beta Was this translation helpful? Give feedback.
All reactions