Memory Leak in torch.load()

I’ve discovered a memory leak in torch.load() when loading a saved tensor. Despite explicitly deleting the loaded object and invoking garbage collection, the memory usage does not decrease as expected.

I created the following issue to address it: Memory Leak in torch.load() · Issue #126159 · pytorch/pytorch · GitHub

I would greatly appreciate any help to solve this problem.