It’s currently not possible to read .pt file saved by Python script, because Python script’s torch.save method uses pickling and it’s not understood by C++.
In order to load a pre-trained model into libtorch, the model should be written in TorchScript, saved with model.save(filename) and loaded into libtorch with torch::jit::load().