How to Define Model in Native Pytorch Format and Import Into LightningModule Without Copy and Pasting? #9885
Unanswered
stanleyshly
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments 1 reply
-
just replace |
Beta Was this translation helpful? Give feedback.
1 reply
-
Alternatively, you can just instantiate the Pytorch Module inside Lightning Module e.g.
|
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
-
Let's say I have a native pytorch model like this
What is the best/most simple way to have the init function and forward function(basically, the whole network) into a pytorch lighting module without copy and pasting?
Beta Was this translation helpful? Give feedback.
All reactions