Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Proper way of registering gluon V2.0 custom parameter? #19221

Answered by leezu
feevos asked this question in Q&A
Discussion options

You must be logged in to vote

To access parameters in HybridBlock.forward API you should follow the same approach as in Block.forward. Thus, you can access your custom parameter via self.gamma.data() inside the forward method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@feevos
Comment options

Answer selected by feevos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants