Open learntolearn11 opened 4 years ago
try torch.cuda.empty_cache() after every batch may help free about 2GB memory(in my experiment).
torch.cuda.empty_cache()
@maqy1995 Thanks for your help to response this question.
try
torch.cuda.empty_cache()
after every batch may help free about 2GB memory(in my experiment).