-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority: 1Medium priority taskMedium priority taskwon't fixThis will not be worked onThis will not be worked on
Description
Hi @tchaton. I'm facing this memory leak. Returning an output in validation_step wil always be stored although validation_epoch_end isn't defined. You can test it removing validation_epoch_end from the BoringModel. For me, it's an unexpected behavior as I expect to behave validation loop as the training loop. That it's, if you don't want to store the outputs, do not override train_epoch_end hook.
In my case, I had a callback to compute the metrics and log validation outputs to an external service. So, I return a dictionary in validation_step and implement callbacks that overrides on_validation_batch_end and on_validation_epoch_end. This causes that outputs are stored --> memory leak.
Originally posted by @hal-314 in #8453 (comment)
magehrig and hyejin9
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority: 1Medium priority taskMedium priority taskwon't fixThis will not be worked onThis will not be worked on