Update flat tensor ndm to account for named delegate data
Stack from ghstack (oldest at bottom):
- -> #10330
- #10328
Currently flat_tensor ndm only accounts for tensors in get_data, get_num_keys, get_key functions.
Add support to return named_data values as well.
TODO: consolidate tensors and named_data into one structure in the flatbuffer. This will simplify all the serialization and runtime code.
Currently, we assume that a PTD file has either tensors or named_data, not both. After the consolidation, this won't be an issue.
Differential Revision: D73380805
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10330
- :page_facing_up: Preview Python docs built from this PR
Note: Links to docs will display an error until the docs builds have been completed.
:x: 6 New Failures
As of commit 75cc0e625e620a7a85caf4e5d7a7419ed0bde701 with merge base 334af4a1a338a9a37a4e5f0830cc37d83d6a5681 ():
NEW FAILURES - The following jobs have failed:
-
Lint / lintrunner / linux-job (gh)
>>> Lint for backends/cadence/aot/tests/test_replace_ops_passes.py: -
Propose to merge ghstack orig PRs to main / Try to create a PR with ghstack /orig branch (gh)
Process completed with exit code 1. -
pull / unittest / linux / linux-job (gh)
[ FAILED ] FlatTensorDataMapTest.FlatTensorDataMap_Keys_Xnnpack -
pull / unittest / macos / macos-job (gh)
[ FAILED ] FlatTensorDataMapTest.FlatTensorDataMap_Keys_Xnnpack -
pull / unittest-editable / linux / linux-job (gh)
[ FAILED ] FlatTensorDataMapTest.FlatTensorDataMap_Keys_Xnnpack -
pull / unittest-editable / macos / macos-job (gh)
[ FAILED ] FlatTensorDataMapTest.FlatTensorDataMap_Keys_Xnnpack
This comment was automatically generated by Dr. CI and updates every 15 minutes.
This pull request was exported from Phabricator. Differential Revision: D73380805
This pull request was exported from Phabricator. Differential Revision: D73380805