Skip to content

Commit eb75c75

Browse files
committed
mypy
1 parent 51ca3a3 commit eb75c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

onnx_diagnostic/helpers/torch_test_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def steal_forward(
8181
if "with_shape" not in context and fprint == string_type:
8282
context["with_shape"] = True
8383
if not isinstance(model, list):
84+
assert isinstance(model, torch.nn.Module), f"Unexpected type {type(model)} for model"
8485
if submodules:
8586
models = []
8687
for idx, m in model.named_modules():

0 commit comments

Comments
 (0)