Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c2da8d9
Fold parameter-only subgraphs before XNNPACK partitioning
john-rocky Sep 1, 2026
d08db03
Functionalize before folding, extend the factory skip list, add test …
john-rocky Sep 3, 2026
d8d327f
Keep the program buffer alive while the runtime module reads it
john-rocky Sep 11, 2026
2fbffed
Keep buffers and training graphs out of the fold
john-rocky Sep 13, 2026
3812e7a
Register a folded value like its source: name, kind and custom meta
john-rocky Sep 15, 2026
e61fc47
Fold only the computed GEMM weights, and keep the edge-level pass as …
john-rocky Sep 18, 2026
ddfd0fc
Refuse a second write of an external constant name with different data
john-rocky Sep 18, 2026
80ec868
Test a scalar result through the fold and through the hook
john-rocky Sep 27, 2026
08af734
Describe each producer once in the name of a folded value
john-rocky Sep 27, 2026
c18f926
Fold a multi-output op with all of its outputs, and count bytes over …
john-rocky Sep 27, 2026
df2227e
Retrace in the XNNPACK hook only when a weight will fold
john-rocky Sep 27, 2026
9ae7b99
Move the constant_prop_pass tests to a file pytest collects
john-rocky Sep 27, 2026
4fca372
Decide which nodes are constant-only without recursion
john-rocky Oct 1, 2026
ad47480
Name a folded value after the whole digest of its fully qualified exp…
john-rocky Oct 1, 2026
25075a0
Refuse to fold sources that disagree on their custom meta
john-rocky Oct 1, 2026
1efcc3d
Keep a parameter another method reads out of the fold
john-rocky Oct 1, 2026
e212176
Honor fold_buffers in the output fixup
john-rocky Oct 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backends/xnnpack/partition/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ fbcode_target(_kind = runtime.python_library,
":partitioner_graphs",
"//executorch/backends/xnnpack:xnnpack_preprocess",
"//executorch/backends/xnnpack/partition/config:xnnpack_partitioner_configs",
"//executorch/backends/xnnpack/utils:xnnpack_utils",
"//executorch/exir:delegate",
"//executorch/exir:lib",
"//executorch/exir/backend:partitioner",
"//executorch/exir/backend:utils",
"//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib",
"//executorch/exir/passes:constant_prop_pass",
],
)

Expand Down
337 changes: 336 additions & 1 deletion backends/xnnpack/partition/xnnpack_partitioner.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions backends/xnnpack/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ fbcode_target(_kind = runtime.python_test,
deps = [
"//caffe2:torch",
"//executorch/backends/xnnpack/partition:xnnpack_partitioner",
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
"//executorch/exir:lib",
"//executorch/exir/passes:lib",
"//executorch/export:export_utils",
"//executorch/extension/pybindings:portable_lib",
"//pytorch/ao:torchao", # @manual
],
)
Loading