_pickle.UnpicklingError: invalid load key, '\x0a'

Hi,
How to fix following error?

Traceback (most recent call last):
File “python/main.py”, line 558, in
main()
File “python/main.py”, line 436, in main
model = backend.load(args.model, inputs=args.inputs, outputs=args.outputs)
File “/home/root/Ankita/inference/vision/classification_and_detection/python/backend_pytorch_native.py”, line 26, in load
self.model = torch.load(model_path,map_location=lambda storage, loc: storage)
File “/usr/lib/python3.8/site-packages/torch/serialization.py”, line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File “/usr/lib/python3.8/site-packages/torch/serialization.py”, line 762, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, ‘\x0a’.