Finally, I found a way to utilize torch.Storage.from_file. For detail, see here.
torch.Storage.from_file