The method is available now http://pytorch.org/docs/master/cuda.html#torch.cuda.empty_cache 2.5k. Note that you need to delete all references to the variable you want to free before calling this. This requirement is due to safety concern. @jef