When I am trying to load a .pt
file i am seeing the following error,
str1='Dataset/ALL_feats_cgqa.pt'
m = torch.load(str1)
the error is as follows,
File "/home/Storage1/pythonCodeArea/train.py", line 21, in load_embeddings
m = torch.load(str1)
File "/home/.local/lib/python3.10/site-packages/torch/serialization.py", line 1040, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/.local/lib/python3.10/site-packages/torch/serialization.py", line 1262, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
I have no idea about this error. Any help will be highly appreciated.
I have gone through these references without any solution, [1], [2], [3], [4].