Can't build libtorch lite for iOS in linux

Hello good people,
I’m on Linux, and I was trying to convert a pytorch model optimized for IOS following this link: (Prototype) Introduce lite interpreter workflow in Android and iOS — PyTorch Tutorials 1.9.0+cu102 documentation

But what I found in Build libtorch lite for iOS step that it requires iOS SDK. As I’m on a Linux system, it’s quite impossible for me to use this.

So, my concern is whether there is any way to convert my Pytorch model for use on iOS. Or I can follow another workflow which can convert a pytorch model. I’d be glad to know that. Thanks in advance.

Once converted the model (save_for_lite_interpreter) and obtained operator yaml file in Linux, you can build libtorch lite on Mac using the generated yaml file.

1 Like

So we need to do the build on a mac. Ok, will try that.

1 Like

The current release is using mobile interpreter. If you don’t need a custom build (only build with the operators needed for a target model), this tutorial is probably easier to follow (beta) Efficient mobile interpreter in Android and iOS — PyTorch Tutorials 1.10.0+cu102 documentation

I do need a custom build for la pack