Hi,
I am trying to load a tensor using torch.load(), but I get  the problem of memory allocation and it seems a little bit weird to allocate such a massive memory for a tensor of size 500.
does anyone have an idea about what might be the reason?
thank you!
to save the mean tensor:
save_dir = "Statistics"
        if not os.path.isdir(save_dir):
            os.makedirs(save_dir)
file_path = os.path.join(save_dir, 'tensor-{:04d}.pt'.format(cpt))
torch.save(mean, file_path)

to load the tensor:
file_path = os.path.join(save_dir, 'tensor-0013.pt')  
t =  torch.load(file_path)