Skip to content

Commit 65830d9

Browse files
cccclaifacebook-github-bot
authored andcommitted
fix lint warning (#295)
Summary: Pull Request resolved: #295 the function is too complext and lint runner shows warning. Suppress it for now and will refactor later Reviewed By: huydhn Differential Revision: D49213042 fbshipit-source-id: 39d0261224542ec0b13e34e1379d7269d5206aaa
1 parent 69a68b4 commit 65830d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/example/example_backend_delegate_passes/permute_memory_formats_pass.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class PermuteMemoryFormatsPass(ExportPass):
2828
after pass: x -> to_dim(channel_last) -> conv -> to_dim_(contiguous) -> to_dim(channel_last) -> linear -> to_dim_(contiguous) -> out
2929
"""
3030

31-
def call(self, graph_module: torch.fx.GraphModule) -> PassResult:
31+
def call( # noqa: suprress function is too complex (13)
32+
self, graph_module: torch.fx.GraphModule
33+
) -> PassResult:
3234
for pattern in list(module_to_annotator.keys()):
3335
pattern_op = module_to_annotator[pattern]
3436
if pattern_op.permuate_memory_format:

0 commit comments

Comments
 (0)