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 c84d3f7 commit 094588fCopy full SHA for 094588f
onnx_diagnostic/torch_models/hghub/model_inputs.py
@@ -113,6 +113,7 @@ def get_untrained_model_with_inputs(
113
print(f"[get_untrained_model_with_inputs] architectures={archs!r}")
114
print(f"[get_untrained_model_with_inputs] cls={config.__class__.__name__!r}")
115
if task is None:
116
+ assert archs is not None
117
task = task_from_arch(archs[0], model_id=model_id, subfolder=subfolder)
118
if verbose:
119
print(f"[get_untrained_model_with_inputs] task={task!r}")
0 commit comments