Is it possible to partially run a model? #3000
Unanswered
jamesheald
asked this question in
Q&A
Replies: 1 comment
-
hi @jamesheald, would |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a module/class of this kind:
Here, encoder and decoder are classes defined elsewhere. On occasions, I want to be able to call the individual submodules (e.g. self.encoder or self.decoder) of the module autoencoder, but as I understand they are inaccessible and can only be accessed by calling __ call __ (e.g. via model.apply), which calls both of them, consecutively (which I do also want to do sometimes). I ideally want to keep these submodules bundled together in this module so that when I initialize the model (via model.init), I have the full model and all of it's parameters in one place. (In my actual problem I have 6 submodules so I have simplified things here.)
This use case seems to be described here under 'Future work'. Is there no current solution to what I am trying to do?
Beta Was this translation helpful? Give feedback.
All reactions