Skip to content

Commit d608c49

Browse files
author
Github Executorch
committed
Update
[ghstack-poisoned]
2 parents 3bbed22 + 273888f commit d608c49

26 files changed

Lines changed: 1719 additions & 979 deletions

backends/cadence/aot/BUCK

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ fbcode_target(_kind = runtime.python_library,
8181
"pass_utils.py",
8282
],
8383
deps = [
84-
"fbsource//third-party/pypi/beartype:beartype",
8584
":utils",
8685
"//caffe2:torch",
86+
"//executorch/backends/transforms:permute_pass_utils",
8787
"//executorch/exir:pass_base",
8888
"//executorch/exir/dialects:lib",
8989
"//executorch/exir/passes:lib",
@@ -188,7 +188,6 @@ fbcode_target(_kind = python_unittest,
188188
],
189189
typing = True,
190190
deps = [
191-
"fbsource//third-party/pypi/beartype:beartype",
192191
":pass_utils",
193192
"//caffe2:torch",
194193
],
@@ -267,6 +266,10 @@ fbcode_target(_kind = runtime.python_library,
267266
"//caffe2:torch",
268267
"//executorch/backends/cadence/aot:pass_utils",
269268
"//executorch/backends/cadence/aot:utils",
269+
"//executorch/backends/transforms:fuse_cascaded_transpose_or_permute_ops",
270+
"//executorch/backends/transforms:fuse_cascaded_view_ops",
271+
"//executorch/backends/transforms:fuse_transpose_or_permute_op_pairs_pass",
272+
"//executorch/backends/transforms:permute_pass_utils",
270273
"//executorch/exir:pass_base",
271274
"//executorch/exir/dialects:lib",
272275
"//executorch/exir/dialects/edge:lib",
@@ -304,6 +307,7 @@ fbcode_target(_kind = runtime.python_library,
304307
"//executorch/backends/cadence/aot:pass_utils",
305308
"//executorch/backends/cadence/aot:simplify_ops",
306309
"//executorch/backends/transforms:remove_clone_ops",
310+
"//executorch/backends/transforms:remove_permutes_around_elementwise_ops",
307311
"//executorch/exir:pass_base",
308312
"//executorch/exir/dialects:lib",
309313
"//executorch/exir/dialects/edge:lib",
@@ -322,6 +326,7 @@ fbcode_target(_kind = runtime.python_library,
322326
"//executorch/backends/cadence/aot:compiler_utils",
323327
"//executorch/backends/cadence/aot:pass_utils",
324328
"//executorch/backends/cadence/aot:utils",
329+
"//executorch/backends/transforms:postpone_permute_below_squeeze_view",
325330
"//executorch/exir:pass_base",
326331
"//executorch/exir:tensor",
327332
"//executorch/exir/dialects:lib",
@@ -343,6 +348,7 @@ fbcode_target(_kind = runtime.python_library,
343348
"//executorch/backends/cadence/aot:pass_utils",
344349
"//executorch/backends/cadence/aot:remove_ops",
345350
"//executorch/backends/cadence/aot:utils",
351+
"//executorch/backends/transforms:replace_nop_transpose_or_permute_with_view",
346352
"//executorch/backends/transforms:replace_scalar_with_tensor",
347353
"//executorch/exir:pass_base",
348354
"//executorch/exir/dialects:lib",

backends/cadence/aot/functions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
- arg_meta: null
385385
kernel_name: impl::generic::quantized_conv2d_nchw_per_tensor_out
386386

387-
- func: cadence::quantized_conv2d_nhwc.per_tensor_out(Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt[] padding, int[] dilation, int groups, int input_zero_point, int weight_zero_point, float bias_scale, float out_scale, int out_zero_point, int out_multiplier, int out_shift, *, Tensor(a!) out) -> Tensor(a!)
387+
- func: cadence::quantized_conv2d_nhwc.per_tensor_out(Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt[] padding, int[] dilation, int groups, int input_zero_point, int weight_zero_point, float bias_scale, float out_scale, int out_zero_point, int out_multiplier, int out_shift, Tensor? offset=None, *, Tensor(a!) out) -> Tensor(a!)
388388
kernels:
389389
- arg_meta: null
390390
kernel_name: impl::generic::quantized_conv2d_nhwc_per_tensor_out

backends/cadence/aot/functions_hifi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
- arg_meta: null
396396
kernel_name: impl::HiFi::quantized_conv2d_nchw_per_tensor_out
397397

398-
- func: cadence::quantized_conv2d_nhwc.per_tensor_out(Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt[] padding, int[] dilation, int groups, int input_zero_point, int weight_zero_point, float bias_scale, float out_scale, int out_zero_point, int out_multiplier, int out_shift, *, Tensor(a!) out) -> Tensor(a!)
398+
- func: cadence::quantized_conv2d_nhwc.per_tensor_out(Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt[] padding, int[] dilation, int groups, int input_zero_point, int weight_zero_point, float bias_scale, float out_scale, int out_zero_point, int out_multiplier, int out_shift, Tensor? offset=None, *, Tensor(a!) out) -> Tensor(a!)
399399
kernels:
400400
- arg_meta: null
401401
kernel_name: impl::HiFi::quantized_conv2d_nhwc_per_tensor_out

0 commit comments

Comments
 (0)