I used libtorch to write resnet18 for training in C++, so how to load resnet18.pth in pytorch to help pre-training

I used libtorch to write resnet18 for training in C++, so how to load resnet18.pth in pytorch to help pre-training;
Cannot import using torch::load(resnet18,"./resnet18.pth")
Resnet18 written in c++ is correct

So no-one answered here for a few days. I think you need to provide some more / more verbose information of what you are trying to do to be able to understand.

Best regards

Thomas