Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try garbage collecting to avoid GPU OOM when running the tests
Suggested here: pytest-dev/pytest#10296 (comment) seems that explicitly releasing the GPU resources might be necessary to let torch know there is unused memory
- Loading branch information