Lines Matching full:kernels
2 contribute to. For internal users, please see `executorch/kernels/fb/README.md`.
6 - `kernels`: Contains implementations and tests for the operators defined
8 - `kernels/portable/cpu`: Pure C++ implementations of the operators defined in the
10 - `kernels/optimized/cpu`: Optimized C++ implementations of the operators defined in the
12 - `kernels/aten`: A thin wrapper layer to hookup ATen library into ExecuTorch.
13 - `kernels/test`: Tests for all operator implementations. Since all
60 - [`//kernels/portable/functions.yaml`](https://github.com/pytorch/executorch/blob/main/kernels/por…
64 …- Also add your entry to [`//kernels/aten/functions.yaml`](https://github.com/pytorch/executorch/b…
65 - [`//kernels/portable/custom_ops.yaml`](https://github.com/pytorch/executorch/blob/main/kernels/po…
72 This YAML file schema is a DSL to decribe the operators and the kernels that implement them. This Y…
119 kernels:
131 kernels:
142 kernels:
150 * `kernels`: this entry is used to define the information of kernels. It consists of `arg_meta` and…
154 Attributes under `kernels`:
160 … become `add_scalar_out`, with a lowercase `S`. We support namespace for kernels, but note that we…
184 - `./kernels/portable/cpu/op_<name>.cpp`: The implementations of operator overloads
187 - `./kernels/portable/CMakeLists.txt`: The CMake build file for all the
189 - `./kernels/test/op_<name>_test.cpp`: Unit tests for the operator overloads
192 share tests between multiple kernels, we can put tests in ../test.
196 - `./kernels/test/CMakeLists.txt`: The CMake build file for all the
201 - [`executorch/kernels/portable/cpu/op_add.cpp`](https://github.com/pytorch/executorch/blob/main/ke…
203 - [`./kernels/portable/CMakeLists.txt`](https://github.com/pytorch/executorch/blob/main/kernels/por…
205 - [`executorch/kernels/portable/test/op_add_test.cpp`](https://github.com/pytorch/executorch/blob/m…
207 - [`./kernels/test/CMakeLists.txt`](https://github.com/pytorch/executorch/blob/main/kernels/test/CM…
212 …y [`./kernels/portable/CMakeLists.txt`](https://github.com/pytorch/executorch/blob/main/kernels/po…
225 `executorch/kernels/portable/cpu/op_<name>.cpp`, which should follow the
262 cmake-out/kernels/portable/portable_ops_lib/NativeFunctions.h
294 `executorch/kernels/portable/test/op_<name>_test.cpp`. Here's a suggested
299 #include <executorch/kernels/test/FunctionHeaderWrapper.h> // Declares the operator
330 …e have to add this to [executorch/kernels/tests/CMakeLists.txt](https://github.com/pytorch/executo…
332 For portable kernels, add your test file to [`all_test_sources`](https://github.com/pytorch/executo…
334 For optimized kernels, add your test file to [`_optimized_kernels_test_sources](https://github.com/…
340 - [`executorch/kernels/portable/cpu/op_add.cpp`](https://github.com/pytorch/executorch/blob/main/ke…
341 - [`executorch/kernels/portable/test/op_add_test.cpp`](https://github.com/pytorch/executorch/blob/m…
378 cmake kernels/test \
383 -Bcmake-out/kernels/test
384 cmake --build cmake-out/kernels/test -j9
388 ./cmake-out/kernels/test/portable_kernels_test
389 ./cmake-out/kernels/test/optimized_kernels_test
429 ### Shared kernel tests (executorch/kernels/test)
431 reference for other kernels. We can also share the test cases in
432 `//executorch/kernels/test`, which contains common resources for kernel testing.
436 `#include <executorch/kernels/{}/Functions.h>`. With that, the test sources don't need to know
441 it can be used to test multiple kernels.
452 - This ensures that all kernels can share the same c++ test case source