Skip to content

Commit 07958b5

Browse files
manuelcandalesfacebook-github-bot
authored andcommitted
Clean up op names
Summary: Cleaned up op filenames, and respective targets and test filenames, to match ATen op names Reviewed By: SS-JIA Differential Revision: D47347093 fbshipit-source-id: 10e2c19b0fc4257068214371a65bf652c84f22de
1 parent 66562b1 commit 07958b5

28 files changed

+26
-26
lines changed
File renamed without changes.
File renamed without changes.

kernels/portable/cpu/targets.bzl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ _ATEN_OPS = (
264264
],
265265
),
266266
op_target(
267-
name = "op_expand",
267+
name = "op_expand_copy",
268268
deps = [
269269
"//executorch/core/kernel_types/util:scalar_type_util",
270270
"//executorch/core/kernel_types/util:tensor_util",
@@ -541,7 +541,7 @@ _ATEN_OPS = (
541541
],
542542
),
543543
op_target(
544-
name = "op_permute",
544+
name = "op_permute_copy",
545545
),
546546
op_target(
547547
name = "op_reciprocal",
@@ -582,7 +582,7 @@ _ATEN_OPS = (
582582
],
583583
),
584584
op_target(
585-
name = "op_rsub_scalar",
585+
name = "op_rsub",
586586
deps = [
587587
":scalar_utils",
588588
],
@@ -599,7 +599,7 @@ _ATEN_OPS = (
599599
],
600600
),
601601
op_target(
602-
name = "op_select",
602+
name = "op_select_copy",
603603
),
604604
op_target(
605605
name = "op_select_scatter",
@@ -633,7 +633,7 @@ _ATEN_OPS = (
633633
],
634634
),
635635
op_target(
636-
name = "op_slice",
636+
name = "op_slice_copy",
637637
),
638638
op_target(
639639
name = "op_slice_scatter",
@@ -647,7 +647,7 @@ _ATEN_OPS = (
647647
],
648648
),
649649
op_target(
650-
name = "op_split",
650+
name = "op_split_copy",
651651
),
652652
op_target(
653653
name = "op_sqrt",
@@ -656,7 +656,7 @@ _ATEN_OPS = (
656656
],
657657
),
658658
op_target(
659-
name = "op_squeeze",
659+
name = "op_squeeze_copy",
660660
),
661661
op_target(
662662
name = "op_stack",
@@ -678,7 +678,7 @@ _ATEN_OPS = (
678678
],
679679
),
680680
op_target(
681-
name = "op_t",
681+
name = "op_t_copy",
682682
deps = ["//executorch/kernels/portable/cpu/util:transpose_util"],
683683
),
684684
op_target(
@@ -694,10 +694,10 @@ _ATEN_OPS = (
694694
],
695695
),
696696
op_target(
697-
name = "op_to",
697+
name = "op_to_copy",
698698
),
699699
op_target(
700-
name = "op_transpose",
700+
name = "op_transpose_copy",
701701
deps = ["//executorch/kernels/portable/cpu/util:transpose_util"],
702702
),
703703
op_target(
@@ -707,10 +707,10 @@ _ATEN_OPS = (
707707
],
708708
),
709709
op_target(
710-
name = "op_unbind",
710+
name = "op_unbind_copy",
711711
),
712712
op_target(
713-
name = "op_unsqueeze",
713+
name = "op_unsqueeze_copy",
714714
),
715715
op_target(
716716
name = "op_var",
@@ -721,7 +721,7 @@ _ATEN_OPS = (
721721
],
722722
),
723723
op_target(
724-
name = "op_view",
724+
name = "op_view_copy",
725725
),
726726
op_target(
727727
name = "op_where",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

kernels/test/targets.bzl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def define_common_targets():
193193
_common_op_test("op_eq_test", ["aten", "portable"])
194194
_common_op_test("op_erf_test", ["aten", "portable"])
195195
_common_op_test("op_exp_test", ["aten", "portable", "optimized"])
196-
_common_op_test("op_expand_test", ["aten", "portable"])
196+
_common_op_test("op_expand_copy_test", ["aten", "portable"])
197197
_common_op_test("op_fill_test", ["aten", "portable"])
198198
_common_op_test("op_floor_divide_test", ["aten", "portable"])
199199
_common_op_test("op_floor_test", ["aten", "portable"])
@@ -234,41 +234,41 @@ def define_common_targets():
234234
_common_op_test("op_neg_test", ["aten", "portable", "optimized"])
235235
_common_op_test("op_nonzero_test", ["aten", "portable"])
236236
_common_op_test("op_ones_test", ["aten", "portable"])
237-
_common_op_test("op_permute_test", ["aten", "portable"])
237+
_common_op_test("op_permute_copy_test", ["aten", "portable"])
238238
_common_op_test("op_reciprocal_test", ["aten", "portable"])
239239
_common_op_test("op_relu_test", ["aten", "portable"])
240240
_common_op_test("op_remainder_test", ["aten", "portable"])
241241
_common_op_test("op_repeat_test", ["aten", "portable"])
242242
_common_op_test("op_round_test", ["aten", "portable"])
243243
_common_op_test("op_rsqrt_test", ["aten", "portable"])
244-
_common_op_test("op_rsub_scalar_test", ["aten", "portable"])
244+
_common_op_test("op_rsub_test", ["aten", "portable"])
245245
_common_op_test("op_scalar_tensor_test", ["aten", "portable"])
246246
_common_op_test("op_scatter_add_test", ["aten", "portable"])
247247
_common_op_test("op_select_scatter_test", ["aten", "portable"])
248-
_common_op_test("op_select_test", ["aten", "portable"])
248+
_common_op_test("op_select_copy_test", ["aten", "portable"])
249249
_common_op_test("op_sigmoid_test", ["aten", "portable"])
250250
_common_op_test("op_sign_test", ["aten", "portable"])
251251
_common_op_test("op_sin_test", ["aten", "portable"])
252252
_common_op_test("op_sinh_test", ["aten", "portable"])
253253
_common_op_test("op_slice_scatter_test", ["aten", "portable"])
254-
_common_op_test("op_slice_test", ["aten", "portable"])
254+
_common_op_test("op_slice_copy_test", ["aten", "portable"])
255255
_common_op_test("op_softmax_test", ["aten", "portable"])
256-
_common_op_test("op_split_test", ["aten", "portable"])
256+
_common_op_test("op_split_copy_test", ["aten", "portable"])
257257
_common_op_test("op_sqrt_test", ["aten", "portable"])
258-
_common_op_test("op_squeeze_test", ["aten", "portable"])
258+
_common_op_test("op_squeeze_copy_test", ["aten", "portable"])
259259
_common_op_test("op_stack_test", ["aten", "portable"])
260260
_common_op_test("op_sub_test", ["aten", "portable", "optimized"])
261261
_common_op_test("op_sum_test", ["aten", "portable"])
262-
_common_op_test("op_t_test", ["aten", "portable"])
262+
_common_op_test("op_t_copy_test", ["aten", "portable"])
263263
_common_op_test("op_tan_test", ["aten", "portable"])
264264
_common_op_test("op_tanh_test", ["aten", "portable"])
265-
_common_op_test("op_to_test", ["aten", "portable"])
266-
_common_op_test("op_transpose_test", ["aten", "portable"])
265+
_common_op_test("op_to_copy_test", ["aten", "portable"])
266+
_common_op_test("op_transpose_copy_test", ["aten", "portable"])
267267
_common_op_test("op_tril_test", ["aten", "portable"])
268-
_common_op_test("op_unbind_test", ["aten", "portable"])
269-
_common_op_test("op_unsqueeze_test", ["aten", "portable"])
268+
_common_op_test("op_unbind_copy_test", ["aten", "portable"])
269+
_common_op_test("op_unsqueeze_copy_test", ["aten", "portable"])
270270
_common_op_test("op_var_test", ["aten", "portable"])
271-
_common_op_test("op_view_test", ["aten", "portable"])
271+
_common_op_test("op_view_copy_test", ["aten", "portable"])
272272
_common_op_test("op_where_test", ["aten", "portable"])
273273
_common_op_test("op_zeros_test", ["aten", "portable"])
274274

0 commit comments

Comments
 (0)