Skip to content

Enable W2L XNNPACK delegation #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion examples/backend/xnnpack_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import torch._export as export

from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner
from executorch.exir import EdgeCompileConfig
from executorch.exir import CaptureConfig, EdgeCompileConfig
from executorch.exir.backend.backend_api import to_backend

from ..export.utils import export_to_edge, save_pte_program
Expand Down Expand Up @@ -82,6 +82,7 @@
edge = export_to_edge(
model,
example_inputs,
capture_config=CaptureConfig(enable_aot=True, _unlift=True),
edge_compile_config=EdgeCompileConfig(
_check_ir_validity=False if args.quantize else True,
),
Expand Down
1 change: 1 addition & 0 deletions examples/recipes/xnnpack_optimization/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ class OptimizationOptions(object):
"ic4": OptimizationOptions(
False, False
), # TODO[T163161310]: takes a long time to export to exec prog and save inception_v4 quantized model
"w2l": OptimizationOptions(False, True),
}