Forward run: best practices #7298
-
Once the model is trained, what would be the best way to use it to do a forward pass in a large dataset (that must be divided in batches not to fill GPU memory) and obtain the output? What I normally do is to use the LightningModule as a torch Module. However, that forces me to: write a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In 1.3 there will be a predict function that does all that for you! |
Beta Was this translation helpful? Give feedback.
In 1.3 there will be a predict function that does all that for you!
You can already use it by installing 1.3.0rc1.