Solved by xuhdev in post #6 
              
              
                Could you show a minimum example? The following code works for me for PyTorch 1.1.0: 
import torch
a = torch.zero(300000000, dtype=torch.int8, device='cuda')
b = torch.zero(300000000, dtype=torch.int8, device='cuda')
# Check GPU memory using nvidia-smi
del a
torch.cuda.empty_cache()
# Check GPU memo…