Skip to content

Commit 408042c

Browse files
zonglinpengfacebook-github-bot
authored andcommitted
added empty out (#4757)
Summary: ~ Differential Revision: D61407442
1 parent 7b795d7 commit 408042c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

backends/cadence/aot/functions.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
- arg_meta: null
5858
kernel_name: torch::executor::embedding_out
5959

60+
- op: empty.out
61+
kernels:
62+
- arg_meta: null
63+
kernel_name: torch::executor::empty_out
64+
6065
- op: expand_copy.out
6166
kernels:
6267
- arg_meta: null

backends/cadence/reference/operators/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ set(_aten_ops__srcs
4949
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_to_copy.cpp"
5050
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_where.cpp"
5151
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_expand_copy.cpp"
52-
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_gelu.cpp")
52+
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_gelu.cpp"
53+
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_empty.cpp")
5354
add_library(aten_ops_cadence ${_aten_ops__srcs})
5455
target_link_libraries(aten_ops_cadence PUBLIC executorch)
5556
target_link_libraries(aten_ops_cadence PRIVATE cadence_kernels)

0 commit comments

Comments
 (0)