Skip to content

Submodule Sequential must be defined in setup() or in a method wrapped in @compact #1391

Discussion options

You must be logged in to vote

Tunnel Vision got to me 😅. I wasn't passing a list of modules. I was doing something like Sequential(Dense(), LayerNorm()) instead of Sequential([Dense(), LayerNorm()]). Closing the discussion.

Replies: 2 comments 4 replies

Comment options

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

Comment options

You must be logged in to vote
3 replies
@zaccharieramzi
Comment options

@cgarciae
Comment options

@cgarciae
Comment options

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