-
Notifications
You must be signed in to change notification settings - Fork 607
Add method variants in dynamic shim to use core tensor/evalue/result types #7834
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
Add method variants in dynamic shim to use core tensor/evalue/result types #7834
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7834
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 095e826 with merge base 6332238 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D67650320 |
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: digantdesai Differential Revision: D67650320
44e688f
to
1d1da4c
Compare
This pull request was exported from Phabricator. Differential Revision: D67650320 |
1d1da4c
to
cddeb9c
Compare
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: digantdesai Differential Revision: D67650320
This pull request was exported from Phabricator. Differential Revision: D67650320 |
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: digantdesai Differential Revision: D67650320
cddeb9c
to
1a2cd42
Compare
This pull request was exported from Phabricator. Differential Revision: D67650320 |
@GregoryComer has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1a2cd42
to
25ae583
Compare
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: metascroy Differential Revision: D67650320 Pulled By: GregoryComer
This pull request was exported from Phabricator. Differential Revision: D67650320 |
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: metascroy Differential Revision: D67650320 Pulled By: GregoryComer
25ae583
to
b6033c9
Compare
This pull request was exported from Phabricator. Differential Revision: D67650320 |
…types (pytorch#7834) Summary: This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this: 1) Wrapper types are limited in functionality compared to the core types. 2) We need to add more functionality to the wrappers as we support more models, leading to duplicated effort. 3) API surface is inconsistent with ET documentation, which uses the core types. This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead. Reviewed By: metascroy Differential Revision: D67650320 Pulled By: GregoryComer
b6033c9
to
095e826
Compare
This pull request was exported from Phabricator. Differential Revision: D67650320 |
…types Differential Revision: D67650320 Pull Request resolved: #7834
Summary:
This change adds forward and execute methods to the dynamic shim interface that make use of the core executorch tensor, evalue, and result types. The intent is to allow users to use the "real" ET types, rather than TensorWrapper/EValueWrapper. There are several reasons to do this:
This change should not introduce significant binary size changes, as these new methods are not currently used and are thus optimized out in release builds. When updating call sites to use the new methods and core ET types, impact is <= 5kB (see diffs in this stack). The ET core runtime is designed to be small, so directly including these types should not carry significant size overhead.
Differential Revision: D67650320