Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions backends/cadence/aot/ops_registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,9 +1030,9 @@ def quantized_conv2d_nhwc_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1074,9 +1074,9 @@ def quantized_conv2d_nchw_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1118,9 +1118,9 @@ def quantized_conv2d_nchw_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1162,9 +1162,9 @@ def quantized_conv2d_nhwc_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1211,9 +1211,9 @@ def quantized_conv2d_nchw_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1260,9 +1260,9 @@ def quantized_conv2d_nchw_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1309,9 +1309,9 @@ def quantized_conv2d_nhwc_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1358,9 +1358,9 @@ def quantized_conv2d_nhwc_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1407,9 +1407,9 @@ def quantized_conv2d_nchw_dilated_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1456,9 +1456,9 @@ def quantized_conv2d_nchw_dilated_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1505,9 +1505,9 @@ def quantized_conv2d_nhwc_dilated_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1554,9 +1554,9 @@ def quantized_conv2d_nhwc_dilated_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1605,9 +1605,9 @@ def quantized_conv2d_nchw_depthwise_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1656,9 +1656,9 @@ def quantized_conv2d_nchw_depthwise_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
False,
)
Expand Down Expand Up @@ -1707,9 +1707,9 @@ def quantized_conv2d_nhwc_depthwise_asym8sxsym8s_asym8s_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down Expand Up @@ -1758,9 +1758,9 @@ def quantized_conv2d_nhwc_depthwise_asym8uxsym8u_asym8u_per_tensor_meta(
get_conv1d_output_size(
in_size,
out_channels,
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
kernel_size[0],
True,
)
Expand Down
6 changes: 3 additions & 3 deletions backends/cadence/aot/ref_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,9 @@ def quantized_conv_per_tensor(
(input_tensor - in_zero_point).float(),
(weight - weight_zero_point).float(),
(bias * bias_scale).float(),
stride[1],
padding[1],
dilation[1],
stride[-1],
padding[-1],
dilation[-1],
groups,
)

Expand Down