Skip to content

[executorch][runtime] Add NamedDataMap to method load #8200

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

Merged
merged 5 commits into from
Feb 11, 2025

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Feb 5, 2025

Stack from ghstack (oldest at bottom):

Add NamedDataMap as an arg to:

  • Method
  • load_method
  • parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: D67127327

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Feb 5, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8200

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f9ca87f with merge base 8d96d74 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 5, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67127327

@JacobSzwejbka JacobSzwejbka added the release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) label Feb 6, 2025
Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67127327

lucylq added a commit that referenced this pull request Feb 7, 2025
Pull Request resolved: #8200

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

TODO: additional test cases. also, tests for mutable case with load_data_into when that is landed, see D69148652.


Note: dependency on D66580784, which fixes some failing RL tests exposed by this diff from inclusion of portable and aten headers.
https://www.internalfb.com/code/fbsource/[2b74908ed03c34fbfd53fb57575eba0964fe0136][history]/arvr/projects/depthsensing/products/depthmanager/depth/stereo/MlStereoDisparityModelExecutorchBackend.h?lines=13-15


ghstack-source-id: 265301446
@exported-using-ghexport

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)
Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67127327

lucylq added a commit that referenced this pull request Feb 7, 2025
Pull Request resolved: #8200

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

TODO: additional test cases. also, tests for mutable case with load_data_into when that is landed, see D69148652.


Note: dependency on D66580784, which fixes some failing RL tests exposed by this diff from inclusion of portable and aten headers.
https://www.internalfb.com/code/fbsource/[2b74908ed03c34fbfd53fb57575eba0964fe0136][history]/arvr/projects/depthsensing/products/depthmanager/depth/stereo/MlStereoDisparityModelExecutorchBackend.h?lines=13-15


ghstack-source-id: 265308478
@exported-using-ghexport

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)
Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

[ghstack-poisoned]
lucylq added a commit that referenced this pull request Feb 10, 2025
Pull Request resolved: #8200

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

TODO: additional test cases. also, tests for mutable case with load_data_into when that is landed, see D69148652.


Note: dependency on D66580784, which fixes some failing RL tests exposed by this diff from inclusion of portable and aten headers.
https://www.internalfb.com/code/fbsource/[2b74908ed03c34fbfd53fb57575eba0964fe0136][history]/arvr/projects/depthsensing/products/depthmanager/depth/stereo/MlStereoDisparityModelExecutorchBackend.h?lines=13-15


ghstack-source-id: 265545111
@exported-using-ghexport

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67127327

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67127327

lucylq added a commit that referenced this pull request Feb 11, 2025
Pull Request resolved: #8200

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

TODO: additional test cases. also, tests for mutable case with load_data_into when that is landed, see D69148652.

Land after: #8349, which adds CMake support for FlatTensor.

Note: dependency on D66580784, which fixes some failing RL tests exposed by this diff from inclusion of portable and aten headers.
https://www.internalfb.com/code/fbsource/[2b74908ed03c34fbfd53fb57575eba0964fe0136][history]/arvr/projects/depthsensing/products/depthmanager/depth/stereo/MlStereoDisparityModelExecutorchBackend.h?lines=13-15


ghstack-source-id: 265828564
@exported-using-ghexport

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)
@facebook-github-bot facebook-github-bot merged commit 39cd4e4 into gh/lucylq/38/base Feb 11, 2025
45 of 47 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/lucylq/38/head branch February 11, 2025 18:52
lucylq added a commit that referenced this pull request Feb 12, 2025
Pull Request resolved: #8200

Add NamedDataMap as an arg to:
- Method
- load_method
- parseTensor

Use NamedDataMap to resolve external tensors in parseTensor.

Test that the PTE + PTD file run well inside method_test.

TODO: additional test cases. also, tests for mutable case with load_data_into when that is landed, see D69148652.

Land after: #8349, which adds CMake support for FlatTensor.

Note: dependency on D66580784, which fixes some failing RL tests exposed by this diff from inclusion of portable and aten headers.
https://www.internalfb.com/code/fbsource/[2b74908ed03c34fbfd53fb57575eba0964fe0136][history]/arvr/projects/depthsensing/products/depthmanager/depth/stereo/MlStereoDisparityModelExecutorchBackend.h?lines=13-15


ghstack-source-id: 265828564
@exported-using-ghexport

Differential Revision: [D67127327](https://our.internmc.facebook.com/intern/diff/D67127327/)

Co-authored-by: lucylq <lfq@meta.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants