Skip to content

Commit 103deb6

Browse files
Fix lint in Vulkan backend (pytorch#18081)
Forward fixing lint for pytorch#18031 cc @SS-JIA @digantdesai @cbilgin
1 parent 918e92b commit 103deb6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

backends/vulkan/patterns/quantized_convolution.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class QuantizedConvolutionMatch(PatternMatch):
31-
def __init__(self, conv_node: torch.fx.Node) -> None:
31+
def __init__(self, conv_node: torch.fx.Node) -> None: # noqa: C901
3232
self.anchor_node = conv_node
3333
self.match_found = False
3434
self.all_nodes = [self.anchor_node]
@@ -41,7 +41,9 @@ def __init__(self, conv_node: torch.fx.Node) -> None:
4141
if transposed_flag:
4242
self.transposed = True
4343
self.output_padding = (
44-
cast(List[int], conv_node.args[7]) if len(conv_node.args) > 7 else [0, 0]
44+
cast(List[int], conv_node.args[7])
45+
if len(conv_node.args) > 7
46+
else [0, 0]
4547
)
4648

4749
# Extract convolution parameters

0 commit comments

Comments
 (0)