guan404ming commented on code in PR #713: URL: https://github.com/apache/mahout/pull/713#discussion_r2613120593
########## qdp/benchmark/benchmark_e2e.py: ########## @@ -63,6 +64,14 @@ BATCH_SIZE = 64 # Small batch to stress loop overhead +def clean_cache(): Review Comment: Let's call `gc.collect()` before `torch.cuda.empty_cache()` because tensors must be freed by Python first for the CUDA cache clear to actually release memory. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
