How to load pt file (weight) on C not C++?

I want to compare the result of pytorch’s inference and C’s inference

libtorch doesn’t have a C API (anymore) if I’m not mistaken so you would need to use the C++ API.