Skip to content

Commit 6cd890f

Browse files
committed
Python style
1 parent 7627cbb commit 6cd890f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

py/torch_tensorrt/dynamo/tools/opset_coverage.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,19 @@ def opset_coverage(
146146
)
147147

148148
if registry_data is not None:
149-
if DYNAMO_REGISTRY_NAME in registry_data and registry_data[DYNAMO_REGISTRY_NAME] >= 1:
149+
if (
150+
DYNAMO_REGISTRY_NAME in registry_data
151+
and registry_data[DYNAMO_REGISTRY_NAME] >= 1
152+
):
150153
status = SupportStatus.CONVERTED
151154
support_count += 1
152-
elif (FX_REGISTRY_NAME in registry_data and registry_data[FX_REGISTRY_NAME] >= 1) or (FX_LEGACY_REGISTRY_NAME in registry_data and registry_data[FX_LEGACY_REGISTRY_NAME] >= 1):
155+
elif (
156+
FX_REGISTRY_NAME in registry_data
157+
and registry_data[FX_REGISTRY_NAME] >= 1
158+
) or (
159+
FX_LEGACY_REGISTRY_NAME in registry_data
160+
and registry_data[FX_LEGACY_REGISTRY_NAME] >= 1
161+
):
153162
status = SupportStatus.LEGACY_CONVERTED
154163
legacy_count += 1
155164
else:

0 commit comments

Comments
 (0)