Skip to content

Commit 76a186d

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
move pattern
Differential Revision: D74344187
1 parent ee6cf99 commit 76a186d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+100
-100
lines changed

backends/cadence/fusion_g3/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ set(_aten_ops__srcs
6666
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_where.cpp"
6767
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/dtype_util.cpp"
6868
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/normalization_ops_util.cpp"
69-
"${EXECUTORCH_ROOT}/kernels/portable/cpu/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp"
69+
"${EXECUTORCH_ROOT}/kernels/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp"
7070
)
7171
add_library(aten_ops_cadence ${_aten_ops__srcs})
7272
target_link_libraries(aten_ops_cadence PUBLIC executorch)

backends/cadence/fusion_g3/operators/op_exp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <xa_nnlib_kernels_api.h>
1414

1515
#include <executorch/backends/cadence/fusion_g3/operators/xt_macros.h>
16-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
16+
#include <executorch/kernels/pattern/pattern.h>
1717
#include <executorch/runtime/kernel/kernel_includes.h>
1818

1919
using ::executorch::aten::ScalarType;

backends/cadence/fusion_g3/operators/op_lt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <xa_nnlib_kernels_api.h>
1212

1313
#include <executorch/backends/cadence/fusion_g3/operators/xt_macros.h>
14-
#include <executorch/kernels/portable/cpu/pattern/comparison_op.h>
14+
#include <executorch/kernels/pattern/comparison_op.h>
1515

1616
using ::executorch::aten::Scalar;
1717
using ::executorch::aten::ScalarType;

backends/cadence/fusion_g3/operators/op_rsqrt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <xa_nnlib_kernels_api.h>
1212

1313
#include <executorch/backends/cadence/fusion_g3/operators/xt_macros.h>
14-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
14+
#include <executorch/kernels/pattern/pattern.h>
1515
#include <executorch/kernels/portable/cpu/util/functional_util.h>
1616
#include <executorch/runtime/kernel/kernel_includes.h>
1717

@@ -68,4 +68,4 @@ Tensor& rsqrt_out(KernelRuntimeContext& ctx, const Tensor& in, Tensor& out) {
6868
} // namespace native
6969
} // namespace G3
7070
} // namespace impl
71-
} // namespace cadence
71+
} // namespace cadence

backends/cadence/fusion_g3/operators/op_sqrt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <xa_nnlib_kernels_api.h>
1414

1515
#include <executorch/backends/cadence/fusion_g3/operators/xt_macros.h>
16-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
16+
#include <executorch/kernels/pattern/pattern.h>
1717
#include <executorch/kernels/portable/cpu/util/functional_util.h>
1818
#include <executorch/runtime/kernel/kernel_includes.h>
1919

backends/cadence/fusion_g3/operators/op_tanh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <xa_nnlib_kernels_api.h>
1414

1515
#include <executorch/backends/cadence/fusion_g3/operators/xt_macros.h>
16-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
16+
#include <executorch/kernels/pattern/pattern.h>
1717
#include <executorch/kernels/portable/cpu/util/functional_util.h>
1818
#include <executorch/runtime/kernel/kernel_includes.h>
1919

backends/cadence/fusion_g3/operators/targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def define_operator(name: str, deps: list[str] | None = None) -> None:
77
# Deps used by all operators.
88
common_deps = [
99
"//executorch/kernels/portable/cpu/util:all_deps",
10-
"//executorch/kernels/portable/cpu/pattern:all_deps",
10+
"//executorch/kernels/pattern:all_deps",
1111
"//executorch/runtime/kernel:kernel_includes",
1212
"//executorch/kernels/portable/cpu:scalar_utils",
1313
"fbsource//third-party/nnlib-FusionG3/xa_nnlib:libxa_nnlib_common",

backends/cadence/hifi/operators/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ set(_aten_ops__srcs
5151
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_hardtanh.cpp"
5252
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_max_pool2d_with_indices.cpp"
5353
"${EXECUTORCH_ROOT}/kernels/portable/cpu/op_to_copy.cpp"
54-
"${EXECUTORCH_ROOT}/kernels/portable/cpu/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp"
54+
"${EXECUTORCH_ROOT}/kernels/pattern/unary_ufunc_realhbbf16_to_floathbf16.cpp"
5555
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/activation_ops_util.cpp"
5656
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/broadcast_util.cpp"
5757
"${EXECUTORCH_ROOT}/kernels/portable/cpu/util/copy_ops_util.cpp"

backends/cadence/hifi/operators/op_rsqrt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
9+
#include <executorch/kernels/pattern/pattern.h>
1010
#include <executorch/runtime/kernel/kernel_includes.h>
1111

1212
#include <executorch/backends/cadence/hifi/kernels/kernels.h>

backends/cadence/hifi/operators/op_tanh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include <executorch/backends/cadence/hifi/kernels/kernels.h>
10-
#include <executorch/kernels/portable/cpu/pattern/pattern.h>
10+
#include <executorch/kernels/pattern/pattern.h>
1111
#include <executorch/runtime/kernel/kernel_includes.h>
1212
#include <cmath>
1313

@@ -41,4 +41,4 @@ Tensor& tanh_out(RuntimeContext& ctx, const Tensor& in, Tensor& out) {
4141
} // namespace native
4242
} // namespace HiFi
4343
} // namespace impl
44-
} // namespace cadence
44+
} // namespace cadence

0 commit comments

Comments
 (0)