Skip to content

Commit 7dd3335

Browse files
authored
Retire attention-mask custom operator
Differential Revision: D115805406 Pull Request resolved: #21802
1 parent 7791a5f commit 7dd3335

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

backends/cadence/aot/ops_registrations.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,6 @@ def register_fake(
747747
"_cat_nop.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> Tensor(a!)"
748748
)
749749

750-
# Custom ops with cadence_nn_ops namespace
751-
jarvis_nn_lib = Library("jarvis_nn_ops", "DEF")
752-
jarvis_nn_lib.define(
753-
"attention_mask.out(Tensor input, Tensor start, Tensor stop, *, Tensor(a!) out) -> Tensor(a!)"
754-
)
755-
756750
# Custom ops in aten namespace. RMSNorm is usually decomposed, so having
757751
# an out-variant is non-standard
758752

kernels/portable/cpu/util/targets.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ def define_common_targets():
8585
],
8686
exported_deps = [
8787
":broadcast_indexes_range",
88+
"//executorch/runtime/core/exec_aten/util:tensor_util",
8889
],
8990
deps = [
9091
":repeat_util",
9192
"//executorch/runtime/kernel:kernel_includes",
9293
"//executorch/runtime/core/exec_aten/util:tensor_shape_to_c_string",
93-
"//executorch/runtime/core/exec_aten/util:tensor_util",
9494
],
9595
visibility = ["PUBLIC"],
9696
)
@@ -424,10 +424,10 @@ def define_common_targets():
424424
exported_headers = ["reduce_util.h"],
425425
deps = [
426426
"//executorch/runtime/kernel:kernel_includes{}".format(suffix),
427-
"//executorch/runtime/core/exec_aten/util:tensor_util{}".format(suffix),
428427
],
429428
exported_deps = [
430429
"//executorch/extension/threadpool:threadpool",
430+
"//executorch/runtime/core/exec_aten/util:tensor_util{}".format(suffix),
431431
],
432432
exported_preprocessor_flags = ["-DUSE_ATEN_LIB"] if aten_mode else [],
433433
visibility = ["PUBLIC"],

0 commit comments

Comments
 (0)