delu.cuda# An addition to torch.cuda. free_memory Free GPU memory: torch.cuda.synchronize + gc.collect + torch.cuda.empty_cache.