You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/selective_build/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Selective Build Examples
2
-
To optimize binary size of ExecuTorch runtime, selective build can be used. This folder contains examples to select only the operators needed for ExecuTorch build. This example will demonstrate the CMake build.
2
+
To optimize binary size of ExecuTorch runtime, selective build can be used. This folder contains examples to select only the operators needed for ExecuTorch build.
3
+
4
+
These examples showcase two flows - the simple way, using CMake options to configure the framework build, and an advanced flow - showcasing user-defined kernel targets including custom operators.
3
5
4
6
## How to run
5
7
@@ -16,8 +18,8 @@ Check out `CMakeLists.txt` for demo of selective build APIs:
16
18
1.`SELECT_ALL_OPS`: Select all ops from the dependency kernel libraries, register all of them into ExecuTorch runtime.
17
19
2.`SELECT_OPS_LIST`: Only select operators from a list.
18
20
3.`SELECT_OPS_YAML`: Only select operators from a yaml file.
19
-
4.`SELECT_OPS_FROM_MODEL`: Only select operators from a from an exported model pte.
20
-
5.`DTYPE_SELECTIVE_BUILD`: Enable rebuild of `portable_kernels` to use dtype selection. Currently only supported for `SELECTED_OPS_FROM_MODEL` API and `portable_kernels` lib.
21
+
4.`SELECT_OPS_MODEL`: Only select operators from a from an exported model pte.
22
+
5.`DTYPE_SELECTIVE_BUILD`: Enable rebuild of `portable_kernels` to use dtype selection. Currently only supported for `SELECTED_OPS_MODEL` API and `portable_kernels` lib.
21
23
22
24
Other configs:
23
25
-`MAX_KERNEL_NUM=N`: Only allocate memory for N operators.
0 commit comments