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 5cd902b commit 1b9e27bCopy full SHA for 1b9e27b
onnx_diagnostic/export/dynamic_shapes.py
@@ -437,7 +437,7 @@ def move_to_kwargs(
437
438
def validate_inputs_for_export(
439
self, dynamic_shapes: Optional[DYNAMIC_SHAPES] = None
440
- ) -> List[List[str]]:
+ ) -> List[List[Union[int,str]]]:
441
"""
442
Validates the inputs the class contains for the given dynamic shapes.
443
If not specified, the dynamic_shapes are guessed.
@@ -447,7 +447,7 @@ def validate_inputs_for_export(
447
448
if dynamic_shapes is None:
449
if len(self.inputs) == 1:
450
- return True
+ return []
451
dyn_shapes = self.guess_dynamic_shapes()
452
return [CoupleInputsDynamicShapes(*i, dyn_shapes).invalid_paths() for i in self.inputs]
453
0 commit comments