Clear memory after each fold in cross validation #9062
Unanswered
talhaanwarch
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 1 reply
-
Dear @talhaanwarch, Mind updating PyTorch Lightning to master. Does this still persist ? Best, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When i start my program, dedicated GPU memory is 0.2-0.5 GB. During fold 1 it reaches to 6 GB (approx), after fold 1 before fold 2, i added sleep command, during this the GPU memory is 3GB. I want it to reach back to 0.5 GB. Here is my code
Any solution?
I also noticed in sleep stage as fold increases the memory sizes increase such as after first fold it is 3GB,. after 2nd fold its 4Gb and so on eventually leading to memory error.
Beta Was this translation helpful? Give feedback.
All reactions