Open
Description
Problem
A lot of duplicated code is done for our partitioner configs which take in two inputs (mul, add, sub, etc.) I believe we can refactor these configs:
executorch/backends/xnnpack/partition/config/generic_node_configs.py
Lines 100 to 107 in 1a9a59b
so that they all inherit from a parent BinaryConfig class. We can then enforce common constraints for these binary configs. This is similar to what we do with the GEMM Config:
Verification
Make sure all existing CI is passing. python -m unittest executorch.backends.xnnpack.test
Resources
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog
Status
No status