Skip to content

module list #2720

Answered by laggui
wangjiawen2013 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use a vec to contain your modules, but the type must be known. If you want to store different types in the sequence, you can define an enum.

See also the discussion on nn.Sequential in #583.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wangjiawen2013
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
Converted from issue

This discussion was converted from issue #2711 on January 20, 2025 17:47.