Skip to content

Commit 7de9f62

Browse files
author
RJ Ascani
committed
Fix formatting
1 parent c013786 commit 7de9f62

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

backends/cortex_m/ops/op_quantized_depthwise_conv2d.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ bool validate_depthwise_conv2d_arguments(
7777

7878
if (bias.has_value() && bias.value().scalar_type() != ScalarType::Int) {
7979
ET_LOG(
80-
Error, "quantized_depthwise_conv2d_out: bias must be int32 if provided");
80+
Error,
81+
"quantized_depthwise_conv2d_out: bias must be int32 if provided");
8182
context.fail(Error::InvalidArgument);
8283
return false;
8384
}

backends/cortex_m/ops/operators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,9 @@ def quantized_depthwise_conv2d_impl(
669669
activation_max: int,
670670
) -> torch.Tensor:
671671
if input.dim() != 4 or weight.dim() != 4:
672-
raise RuntimeError("quantized_depthwise_conv2d expects 4D input and weight tensors")
672+
raise RuntimeError(
673+
"quantized_depthwise_conv2d expects 4D input and weight tensors"
674+
)
673675

674676
# Validate depthwise convolution constraint: groups == input_channels
675677
input_channels = input.shape[1]

0 commit comments

Comments
 (0)