Skip to content

Commit

Permalink
Update on "[executorch][passes] Add config and pass to tag constants …
Browse files Browse the repository at this point in the history
…for external file"

- Add config 'external_constants' to ExecutorchBackendConfig.
- When set to True, run the 'external_constants_pass'
- This tags all constants as external, and moves them into a separate buffer to be serialized outside of the PTE file.

Note: users can write their own passes to tag weights to specific files / multiple files.

TODO: write example pass and test for the case where we have two constant files.

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

[ghstack-poisoned]
  • Loading branch information
lucylq committed Dec 10, 2024
2 parents f305f09 + 6e51176 commit 23713e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/portable/scripts/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

# Example script for exporting simple models to flatbuffer

# pyre-unsafe

import argparse
import logging

Expand Down

0 comments on commit 23713e7

Please sign in to comment.