-
Notifications
You must be signed in to change notification settings - Fork 684
Add .ptd support to portable executor runner #14833
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14833
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New FailuresAs of commit d017656 with merge base 0b748bf ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this!
@larryliu0820 has imported this pull request. If you are a Meta employee, you can view this in D84020938. |
117d265
to
38e07b6
Compare
38e07b6
to
d017656
Compare
This pull request enhances the
executor_runner
example by adding support for loading and using.ptd
(portable tensor data) files. This enables the runner to ingest pre-serialized tensor data, improving flexibility for model input handling. The changes include updates to both build configuration and the main runner logic.Support for .ptd file loading and usage:
data_path
to specify the path to a.ptd
data file inexecutor_runner.cpp
and integrated logic to load this file and parse its contents usingFlatTensorDataMap
. [1] [2]Build and dependency updates:
flat_tensor_data_map
as a dependency in both the Bazel build targets and CMake build configuration to ensure the new functionality is available during compilation. [1] [2] [3]flat_tensor_data_map
inexecutor_runner.cpp
and updated the relevant namespace usage. [1] [2]Test Plan:
Tested with .pte and .ptd for CUDA backend:
Make sure we have
linear.pte
andaoti_cuda_blob.ptd
.Build executor runner with the following options:
Then do:
Then we can run: