Skip to content

Commit 0286927

Browse files
Use wrappers from xnnpack.h for unary and binary ops (#11584) (#11666)
### Summary This PR uses `xnn_define_binary` and `xnn_define_unary` to define XNNPack ops, instead of separately calling the individual definitions. Further changes: 1. Removes individual node definitions for unary and binary ops 2. Creates a wrapper macro to generate function defs for individual ops using `xnn_define_binary` and `xnn_define_unary` inside. Fixes #11584 ### Test plan ``` ## Build steps cmake -DEXECUTORCH_BUILD_XNNPACK=ON .. cmake --build cmake-out -j9 Tests ran: ./test/run_oss_cpp_tests.sh . . . 100% tests passed, 0 tests failed out of 86 ```
1 parent d1bfa4d commit 0286927

File tree

2 files changed

+293
-661
lines changed

2 files changed

+293
-661
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ xcuserdata/
4242
*.xcworkspace/
4343
*.xcframework/
4444

45+
# clangd
46+
.cache/
47+
4548
# misc
4649
/.vscode/
4750
*.so

0 commit comments

Comments
 (0)