Skip to content

Commit 19e8b68

Browse files
PTE diff util (#17790)
Summary: Useful way to test semantic equivalence for a pte Differential Revision: D94937046
1 parent 6ad5f75 commit 19e8b68

4 files changed

Lines changed: 1280 additions & 0 deletions

File tree

devtools/pte_tool/BUCK

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
3+
4+
oncall("executorch")
5+
6+
fbcode_target(_kind = runtime.python_library,
7+
name = "diff_pte_lib",
8+
srcs = [
9+
"diff_pte.py",
10+
],
11+
deps = [
12+
"//executorch/exir:scalar_type",
13+
"//executorch/exir:schema",
14+
"//executorch/exir/_serialize:lib",
15+
],
16+
)
17+
18+
fbcode_target(_kind = runtime.python_binary,
19+
name = "diff_pte",
20+
srcs = [
21+
"diff_pte.py",
22+
],
23+
main_function = "executorch.devtools.pte_tool.diff_pte._main",
24+
deps = [
25+
"//executorch/exir:scalar_type",
26+
"//executorch/exir:schema",
27+
"//executorch/exir/_serialize:lib",
28+
],
29+
)

0 commit comments

Comments
 (0)