Skip to content

Commit d6821fd

Browse files
digantdesaifacebook-github-bot
authored andcommitted
gather-model to pull git submodules from the PR (#431)
Summary: Pull Request resolved: #431 Reviewed By: huydhn Differential Revision: D49504501 fbshipit-source-id: da4ac0712b0d1d267a748d5d0eccb6411c25602e
1 parent dc009f8 commit d6821fd

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.ci/scripts/gather_test_models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
from examples.models import MODEL_NAME_TO_MODEL
1313
from examples.recipes.xnnpack_optimization import MODEL_NAME_TO_OPTIONS
1414

15+
import tosa
16+
import serializer
17+
18+
print(dir(tosa))
19+
print(dir(serializer))
20+
1521
BUILD_TOOLS = [
1622
"buck2",
1723
"cmake",

.github/workflows/pull.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
models: ${{ steps.gather-models.outputs.models }}
1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
submodules: 'true'
23+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2124
- uses: actions/setup-python@v4
2225
with:
2326
python-version: '3.10'

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@
2828
[submodule "backends/xnnpack/third-party/XNNPACK"]
2929
path = backends/xnnpack/third-party/XNNPACK
3030
url = https://github.com/google/XNNPACK.git
31+
[submodule "backends/arm/third-party/serialization_lib"]
32+
path = backends/arm/third-party/serialization_lib
33+
url = https://git.mlplatform.org/tosa/serialization_lib.git
Submodule serialization_lib added at d0520b9

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def run(self):
5959
"executorch/schema": "schema",
6060
"executorch/extension": "extension",
6161
"executorch/bundled_program": "bundled_program",
62+
"tosa": "backends/arm/third-party/serialization_lib/python/tosa",
63+
"serializer": "backends/arm/third-party/serialization_lib/python/serializer",
6264
},
6365
cmdclass={
6466
"install": CustomInstallCommand,

0 commit comments

Comments
 (0)