Cannot load C++ model on Windows10

I have saved a resnet18 model with torch.jit.trace in pytorch just like the libtorch official tutorial. However, when I tried to load it into C++, it failed at the load function, without useful information. My OS is win10. Linux is OK on my WSL. What should i do to make it run?