Skip to content

Commit 4fa2719

Browse files
committed
Update on "[executorch][flat_tensor] flat tensor header"
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 Differential Revision: [D67064570](https://our.internmc.facebook.com/intern/diff/D67064570/) [ghstack-poisoned]
2 parents 52f4156 + e6c2916 commit 4fa2719

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extension/flat_tensor/test/flat_tensor_header_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FlatTensorHeaderTest : public ::testing::Test {
3434
* this test data must change too. The layout of the header is a contract, not
3535
* an implementation detail.
3636
*/
37+
// clang-format off
3738
// @lint-ignore CLANGTIDY facebook-hte-CArray
3839
constexpr char kExampleHeaderData[] = {
3940
// Magic bytes

0 commit comments

Comments
 (0)