SIGN IN SIGN UP

Support named_data in flat_tensor (#10629)

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.

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

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: https://github.com/pytorch/executorch/pull/10527 by
@lucylq
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/lucylq/68/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/68/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/lucylq/68/orig
@diff-train-skip-merge

Co-authored-by: lucylq <lfq@meta.com>
P
pytorchbot committed
09956d6b121c9c99de46cc6d4d032346d806326f
Parent: 424a2dc
Committed by GitHub <noreply@github.com> on 5/1/2025, 9:50:25 PM