SIGN IN SIGN UP

[executorch][flat_tensor] flat tensor header (#7869)

Pull Request resolved: https://github.com/pytorch/executorch/pull/7764

Parse a FlatTensor header. The FlatTensor header contains:
- flatbuffer offset
- flatbuffer size
- segment base offset
- segment data size (total size of all segments)

Mostly taken from extended_header.cpp/.h
ghstack-source-id: 262588577

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

Co-authored-by: lucylq <lfq@meta.com>
P
pytorchbot committed
91eba41ddcf70d20a15ddf4a63cf249a6e6b1f9b
Parent: 7a59069
Committed by GitHub <noreply@github.com> on 1/23/2025, 2:03:54 AM