Skip to content

Commit cf639bb

Browse files
committed
types
1 parent cabcdd3 commit cf639bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/investigate/input_observer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ def build_inputs_completed_with_none_values(self) -> list[list[torch.Tensor]]:
176176
new_flat_inputs.append(flat)
177177
return new_flat_inputs
178178

179-
def infer_dynamic_shapes(self) -> tuple[dict[int, Any]] | dict[str, dict[int, Any]]:
179+
def infer_dynamic_shapes(self) -> tuple[dict[int, Any], ...] | dict[str, dict[int, Any]]:
180180
flat_inputs = self.build_inputs_completed_with_none_values()
181181
# This is already checked by build_inputs_completed_with_none_values
182182
# but this is not always well captured by tools checking types.
183-
assert self._max_kwargs is not None and self._max_kwargs is not None
183+
assert self._max_args is not None and self._max_kwargs is not None
184184
if len({len(flat) for flat in flat_inputs}) != 1:
185185
raise NotImplementedError(
186186
"infer_dynamic_shapes is not implemented "

0 commit comments

Comments
 (0)