We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing Module support for Tuple
Would allow syntax such as:
#[derive(Module, Debug)] pub struct UNetMidBlock2D<B: Backend> { resnet: ResnetBlock2D<B>, attn_resnets: Vec<(AttentionBlock<B>, ResnetBlock2D<B>)>, }
Use struct instead of tuple.
The text was updated successfully, but these errors were encountered:
Would a workaround of using struct work in this case? Suggesting in case if someone is stuck on this issue.
Sorry, something went wrong.
Yup! That’s the workaround I’ve gone with but raised the issue after a conversation with Nathaniel.
Done via #1186
No branches or pull requests
Feature description
Implementing Module support for Tuple
Feature motivation
Would allow syntax such as:
Workaround
Use struct instead of tuple.
The text was updated successfully, but these errors were encountered: