Well, that worked for me in a similar situation. And was easier than tracking non-
collectable tensors.



 Roj:

neither of which had any effect on available RAM (I would have expected it to jump back up to several GB between loops)


one other possibility here is that you have deleted all tensors, but heap size (=used memory as seen from outside) remained unchanged, i.e. buffered for further allocations.