The c++ api is torch::jit::_load_for_mobile. You can find more information in the iOS example: (Prototype) Introduce lite interpreter workflow in Android and iOS — PyTorch Tutorials 1.9.0+cu102 documentation 3