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 18f77de commit 9ba1d09Copy full SHA for 9ba1d09
onnx_diagnostic/export/dynamic_shapes.py
@@ -988,7 +988,11 @@ def move_to_kwargs(
988
with the corresponding dynamic shapes.
989
*kwargs*, *dynamic_shapes* are modified inplace.
990
"""
991
- assert self.signature is not None, (
+ assert (
992
+ self.signature is not None
993
+ and self.forward_parameter_names is not None
994
+ and self.forward_ordered_parameter_names is not None
995
+ ), (
996
"model was None when the class was initialized, "
997
"cannot move args to kwargs without the signature."
998
)
0 commit comments