We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ca3a3 commit eb75c75Copy full SHA for eb75c75
onnx_diagnostic/helpers/torch_test_helper.py
@@ -81,6 +81,7 @@ def steal_forward(
81
if "with_shape" not in context and fprint == string_type:
82
context["with_shape"] = True
83
if not isinstance(model, list):
84
+ assert isinstance(model, torch.nn.Module), f"Unexpected type {type(model)} for model"
85
if submodules:
86
models = []
87
for idx, m in model.named_modules():
0 commit comments