xref: /aosp_15_r20/external/executorch/test/models/deprecated/README.md (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1## Deprecated Models
2
3This readme documents deprecated models that remain compatible with versions of the ExecuTorch runtime.
4
5ModuleLinear-no-constant-segment.pte
6- This file contains constants stored in the constant_buffer, which was deprecated in D61996249, [#5096](https://github.com/pytorch/executorch/pull/5096) on 2024-09-06. Now, constants are stored in a separate segment.
7- This .pte file was generated internally using hg commit hash rFBS5e49dc0319b1d2d9969bbcef92857ab76a899c34, with command:
8    ```
9    buck2 build fbcode//executorch/test/models:exported_programs[ModuleLinear-no-constant-segment.pte] --show-output
10    ```
11- In OSS, the same .pte file can be generated with https://github.com/pytorch/executorch/commit/cea5abbcdded, via:
12    ```
13    python -m test.models.export_program --modules "ModuleLinear" --outdir .
14    ```
15