Skip to content

Commit 4815e29

Browse files
author
Github Executorch
committed
Update
[ghstack-poisoned]
1 parent 89bf180 commit 4815e29

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

kernels/prim_ops/register_prim_ops.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -654,21 +654,13 @@ static Kernel prim_ops[] = {
654654
#if !defined(EXECUTORCH_ENABLE_PRIM_OPS_SELECTIVE_BUILD) || \
655655
defined(INCLUDE_EXECUTORCH_PRIM_ET_COPY_INDEX_TENSOR)
656656
// executorch_prim::et_copy_index.tensor(tensor, tensor) -> tensor
657-
Kernel(
658-
"executorch_prim::et_copy_index.tensor",
659-
[](KernelRuntimeContext& context, Span<EValue*> stack) {
660-
et_copy_index(context, stack);
661-
}),
657+
Kernel("executorch_prim::et_copy_index.tensor", et_copy_index),
662658
#endif
663659

664660
#if !defined(EXECUTORCH_ENABLE_PRIM_OPS_SELECTIVE_BUILD) || \
665661
defined(INCLUDE_EXECUTORCH_PRIM_ET_VIEW_DEFAULT)
666662
// executorch_prim::et_view.default(Tensor, int[]) -> Tensor
667-
Kernel(
668-
"executorch_prim::et_view.default",
669-
[](KernelRuntimeContext& context, Span<EValue*> stack) {
670-
et_view(context, stack);
671-
}),
663+
Kernel("executorch_prim::et_view.default", et_view),
672664
#endif
673665

674666
};

0 commit comments

Comments
 (0)