Skip to content

Commit f5e34c8

Browse files
ethansfngjpiat
authored andcommitted
Fix quantized_conv1d_ncl padding bug in HiFi kernel (pytorch#18783)
Differential Revision: D100069524 Pull Request resolved: pytorch#18783
1 parent b38f398 commit f5e34c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

backends/cadence/hifi/operators/op_quantized_conv1d_ncl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ void xa_opt_quantized_conv1d_ncl_asym8sxsym8s_asym8s(
5959
WORD32 kernel_width = weight.size(2);
6060
WORD32 out_width = out.size(2);
6161
WORD32 out_height = 1;
62-
WORD32 x_stride = 1;
63-
WORD32 y_stride = stride[0];
64-
WORD32 x_padding = 0;
65-
WORD32 y_padding = padding[0];
62+
WORD32 x_stride = stride[0];
63+
WORD32 y_stride = 1;
64+
WORD32 x_padding = padding[0];
65+
WORD32 y_padding = 0;
6666
WORD32 dilation_height = 1;
6767
WORD32 dilation_width = 1;
6868
WORD32 input_zero_bias = -in_zero_point;

0 commit comments

Comments
 (0)