Skip to content

Commit 84e9d77

Browse files
committed
Update on "[kernel] Add template based unboxing"
Adding a new feature to allow users to bypass codegen and register their kernels directly. This is very useful for custom kernels for custom ops. Example usage: ``` Tensor& my_op(RuntimeContext& ctx, const Tensor& self, const Tensor& other, Tensor& out) { // ... return out; } Kernel my_kernel = Kernel.make_boxed_kernel("my_ns::my_op",EXECUTORCH_FN(my_op)); register_kernels({my_kernel}); ``` Differential Revision: [D51553099](https://our.internmc.facebook.com/intern/diff/D51553099) [ghstack-poisoned]
2 parents e677dc1 + ba08da0 commit 84e9d77

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

extension/kernel_util/test/make_boxed_from_unboxed_functor_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
#include <executorch/extension/kernel_util/make_boxed_from_unboxed_functor.h>
10-
#include <executorch/runtime/core/error.h>
1110
#include <executorch/runtime/core/portable_type/tensor.h>
1211
#include <executorch/runtime/kernel/kernel_runtime_context.h>
1312
#include <executorch/runtime/kernel/operator_registry.h>

0 commit comments

Comments
 (0)