Skip to content

Commit 740a0a5

Browse files
tarun292facebook-github-bot
authored andcommitted
Update serializer to sync with export serializer (#4264)
Summary: Pull Request resolved: #4264 This diff brings in the latest export serializer changes from `torch/_export/serde` and then fixes the exir serializer to use these changes. This is a temporary workaround until the serialization extensiblity that zhxchen17 is working on is completed. Then we'll not have to copy over changes from export serializer manually, instead we'll just extend it to handle things like delegate calls and other edge dialect specific things. For now we need this to unblock ASR use case and hence i'm manually syncing and updating for now. Reviewed By: JacobSzwejbka Differential Revision: D57071033 fbshipit-source-id: 4408e2a0740b661e3a3555f800d1567ef10d4ea8
1 parent 242f2c0 commit 740a0a5

File tree

11 files changed

+2457
-490
lines changed

11 files changed

+2457
-490
lines changed

.ci/docker/ci_commit_pins/pytorch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c017c97333dfb9d17f2e5357980241827e50e8d5
1+
4e39cdceb1414b2d416339866a5bb044fbed4977

.lintrunner.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exclude_patterns = [
77
'third-party/**',
88
'**/third-party/**',
99
'.github/scripts/**',
10+
'exir/serde/**',
1011
]
1112
command = [
1213
'python',
@@ -37,6 +38,7 @@ include_patterns = [
3738
exclude_patterns = [
3839
'third-party/**',
3940
'**/third-party/**',
41+
'exir/serde/**',
4042
]
4143
command = [
4244
'python',

exir/serde/TARGETS

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ python_library(
88
name = "serialize",
99
srcs = [
1010
"export_serialize.py",
11+
"schema.py",
12+
"schema_check.py",
1113
"serialize.py",
14+
"union.py",
15+
"upgrade.py",
1216
],
1317
deps = [
1418
"fbsource//third-party/pypi/sympy:sympy",
15-
":schema",
1619
"//caffe2:torch",
1720
"//executorch/exir:delegate",
1821
"//executorch/exir:lowered_backend_module",
@@ -23,13 +26,3 @@ python_library(
2326
"//executorch/exir/dialects/edge:lib",
2427
],
2528
)
26-
27-
python_library(
28-
name = "schema",
29-
srcs = [
30-
"schema.py",
31-
],
32-
deps = [
33-
"//caffe2:torch",
34-
],
35-
)

0 commit comments

Comments
 (0)