How to load .pt in C++/windows

dear all

i am using yolov5. the .pt is trained in python. now i want to apply the .pt in c++/windows. how to do?

i have tried the demo in Loading a TorchScript Model in C++ — PyTorch Tutorials 1.10.0+cu102 documentation. however, it does not work.

thanks

i have load .pt in c++. the .pt should be transformed.