-
Notifications
You must be signed in to change notification settings - Fork 537
Advise on how to run the training example on iOS #8282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We can make it a part of executorch.xcframework for now and then consider how to make a standalone .xcframework for it. |
@shoumikhin thanks for the quick response!
and I notice you already have "extension_training" defined here: https://github.com/pytorch/executorch/blob/main/build/cmake_deps.toml#L214-L224 So I modified the Copy over the following xcframework
But when I try to build using Xcode I got this error:
Any help is appreciated! |
@YuanTingHsieh please try playing with the deps listed for the training target here https://github.com/pytorch/executorch/blob/main/build/cmake_deps.toml#L222 |
@shoumikhin thanks for the reply! I added:
then I am able to do:
Now I try to use it and realize it needs Thanks! |
@YuanTingHsieh please try adding |
@shoumikhin thanks for the help! After added that I can run the training example now.
|
🚀 The feature, motivation and pitch
Hello team,
I was wondering if it is possible to run the
train_xor
or a similar training example on an iOS device.So be able to do
#import <executorch/extension/training/training_module.h>
I have followed this guide: https://pytorch.org/executorch/main/apple-runtime and was able to build the xcframework using a local copy of executorch, add it to the Xcode project, and run it on an iOS device.
I guess I need to compile and package the libraries in https://github.com/pytorch/executorch/tree/main/extension/training to the App, but I don't know how to do that, could you give some pointers?
Thanks!
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
cc @shoumikhin @JacobSzwejbka
The text was updated successfully, but these errors were encountered: