|
1 | 1 | #!/usr/bin/env fbpython |
2 | 2 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | +# Copyright 2026 Arm Limited and/or its affiliates. |
3 | 4 | # All rights reserved. |
4 | 5 | # |
5 | 6 | # This source code is licensed under the BSD-style license found in the |
@@ -76,6 +77,7 @@ def test_load_patch_and_write(self) -> None: |
76 | 77 | SCHEMA_FILES: Dict[str, bytes] = { |
77 | 78 | "program.fbs": b"\n".join( |
78 | 79 | [ |
| 80 | + b'file_identifier "ET12";', |
79 | 81 | b"table Program {", |
80 | 82 | # Space after the colon. |
81 | 83 | b" tensor_data: [ubyte] (force_align: 8); // @executorch-tensor-alignment", |
@@ -146,6 +148,7 @@ def test_update_tensor_alignment(self) -> None: |
146 | 148 | read_file(out_dir, "program.fbs"), |
147 | 149 | b"\n".join( |
148 | 150 | [ |
| 151 | + b'file_identifier "ET12";', |
149 | 152 | b"table Program {", |
150 | 153 | # Now 128: |
151 | 154 | b" tensor_data: [ubyte] (force_align: 128); // @executorch-tensor-alignment", |
@@ -182,6 +185,7 @@ def test_update_delegate_alignment(self) -> None: |
182 | 185 | read_file(out_dir, "program.fbs"), |
183 | 186 | b"\n".join( |
184 | 187 | [ |
| 188 | + b'file_identifier "ET12";', |
185 | 189 | b"table Program {", |
186 | 190 | b" tensor_data: [ubyte] (force_align: 8); // @executorch-tensor-alignment", |
187 | 191 | # Now 256: |
@@ -221,6 +225,7 @@ def test_update_tensor_and_delegate_alignment(self) -> None: |
221 | 225 | read_file(out_dir, "program.fbs"), |
222 | 226 | b"\n".join( |
223 | 227 | [ |
| 228 | + b'file_identifier "ET12";', |
224 | 229 | b"table Program {", |
225 | 230 | # Now 1: |
226 | 231 | b" tensor_data: [ubyte] (force_align: 1); // @executorch-tensor-alignment", |
|
0 commit comments