Hi,
I have tried the follow code on PC platform, it can release memory successfully, but it doesn’t work on TX2 (Jetpack 4.4) .
Is there other method to release memory with Pytorch object?
import gc
import torch
x=torch.randn((32,3,300,300),device=torch.device(‘cuda’))
del x
gc.collect()
torch.cuda.empty_cache()