Skip to content

Commit 7627cbb

Browse files
committed
error if unknown registry name
1 parent be9aa67 commit 7627cbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/torch_tensorrt/dynamo/tools/opset_coverage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def opset_coverage(
152152
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):
153153
status = SupportStatus.LEGACY_CONVERTED
154154
legacy_count += 1
155+
else:
156+
raise Exception(f"Op belongs to unknown registry: {registry_data}")
155157

156158
support_status[target_str] = {
157159
"schema": f"{target_str.split('.')[0]}.{opset_schemas[target_str]}",

0 commit comments

Comments
 (0)