module list #2720
Answered
by
laggui
wangjiawen2013
asked this question in
Q&A
module list
#2720
-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
laggui
Jan 20, 2025
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wangjiawen2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.