PyTorch Forums
How to effectively release a Tensor in Pytorch?
C++
ptrblck
March 12, 2021, 7:58am
2
In Python
del tensor
will work, in
libtorch
you could use e.g.
this approach
.
2 Likes
Is there a way to release GPU memory in libtorch?
show post in topic