I run a model in GTX 1080 Ti with cuda 10.2 and pytorch 1.5. When I synthesize audio output, I use “with torch.no_grad(), torch.backends.cudnn.deterministic = False, torch.backends.cudnn.benchmark = False, torch.cuda.set_device(0), torch.cuda.empty_cache(), os.system(“sudo rm -rf ~/.nv”)” but GPU memory is still increased. Each time it increase about 10 MiB until out of memory.
Can you help me to solve this problem? Thanks very much.