Loading huggingface torchscript from example not working in c++

Hi all

I just followed this example

It works fine in python, both export and import

but when I try to use it in c++ as explained in step 3 here

https://pytorch.org/tutorials/advanced/cpp_export.html

It doesn’t work, I am using V2.4.1+cpu in c++ and Python

it is quite simple the import in c++, and no idea why I get “error loading the model”

thanks in advance