possibly help with out of mem

This commit is contained in:
AccidentallyOnPurpose
2019-12-24 09:03:06 +00:00
committed by GitHub
parent 3a6f5aa475
commit 728ce94ad2
+4
View File
@@ -128,6 +128,10 @@ def play():
colPrint("Go to https://github.com/cloveranon/Clover-Edition/ or email cloveranon@nuke.africa for bug reports, help, and feature requests.", colors['subsubtitle'])
while True:
# May be needed to avoid out of mem
gc.collect()
torch.cuda.empty_cache()
if story_manager.story != None:
del story_manager.story