Skip to content

Commit 7cc62d2

Browse files
committed
Update
[ghstack-poisoned]
2 parents 289d53c + 6893c27 commit 7cc62d2

File tree

8 files changed

+1154
-5
lines changed

8 files changed

+1154
-5
lines changed

backends/cadence/aot/functions_hifi.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- op: _softmax.out
2121
kernels:
2222
- arg_meta: null
23-
kernel_name: cadence::impl::HiFi::softmax_out
23+
kernel_name: cadence::impl::HiFi::_softmax_out
2424

2525
- op: atan2.out
2626
kernels:
@@ -100,7 +100,7 @@
100100
- op: mean.out
101101
kernels:
102102
- arg_meta: null
103-
kernel_name: cadence::impl::HiFi::mean_dim_out
103+
kernel_name: cadence::impl::HiFi::mean_out
104104

105105
- op: minimum.out
106106
kernels:
@@ -175,7 +175,7 @@
175175
- op: where.self_out
176176
kernels:
177177
- arg_meta: null
178-
kernel_name: cadence::impl::HiFi::where_out
178+
kernel_name: cadence::impl::HiFi::where_self_out
179179

180180
# custom ops
181181
- func: cadence::quantize_per_tensor.out(Tensor input, float scale, int zero_point, int quant_min, int quant_max, ScalarType dtype, *, Tensor(a!) out) -> Tensor(a!)
@@ -189,6 +189,11 @@
189189
kernels:
190190
- arg_meta: null
191191
kernel_name: cadence::impl::HiFi::dequantize_per_tensor_out
192+
193+
- func: cadence::quantized_conv.out(Tensor input, Tensor weight, Tensor bias, int[] stride, SymInt[] padding, int[] dilation, int groups, int input_zero_point, Tensor weight_zero_point, Tensor bias_scale, float out_scale, int out_zero_point, Tensor out_multiplier, Tensor out_shift, bool channel_last=False, *, Tensor(a!) out) -> Tensor(a!)
194+
kernels:
195+
- arg_meta: null
196+
kernel_name: cadence::impl::HiFi::quantized_conv_out
192197

193198
- func: cadence::quantized_layer_norm.out(Tensor input, Tensor in_scale, Tensor in_zero_point, int[] normalized_shape, Tensor weight, Tensor bias, float eps, float output_scale, int output_zero_point, *, Tensor(a!) out) -> Tensor(a!)
194199
kernels:
@@ -209,6 +214,11 @@
209214
- arg_meta: null
210215
kernel_name: cadence::impl::HiFi::quantized_linear_per_tensor_out
211216

217+
- func: cadence::quantized_relu_per_tensor.out(Tensor X, Tensor X_zero_point, int out_zero_point, Tensor out_multiplier, Tensor out_shift, *, Tensor(a!) out) -> Tensor(a!)
218+
kernels:
219+
- arg_meta: null
220+
kernel_name: cadence::impl::HiFi::quantized_relu_per_tensor_out
221+
212222
- func: cadence::quantized_relu.out(Tensor X, Tensor X_zero_point, int out_zero_point, Tensor out_multiplier, Tensor out_shift, *, Tensor(a!) out) -> Tensor(a!)
213223
kernels:
214224
- arg_meta: null

backends/cadence/hifi/operators/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ target_include_directories(
7878
# Custom ops that are needed to run the test model.
7979
add_library(
8080
custom_ops "op_quantized_linear_out.cpp" "op_quantized_layer_norm.cpp"
81-
"op_quantize_per_tensor.cpp" "op_quantized_relu_out.cpp" "op_dequantize_per_tensor.cpp" "op_quantized_fully_connected_out"
81+
"op_quantize_per_tensor.cpp" "op_quantized_relu_out.cpp" "op_dequantize_per_tensor.cpp"
82+
"op_quantized_conv_out.cpp" "op_quantized_fully_connected_out"
8283
)
8384
target_include_directories(
8485
custom_ops PUBLIC ${ROOT_DIR}/.. ${CMAKE_BINARY_DIR}

0 commit comments

Comments
 (0)